Revision: 7889
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7889&view=rev
Author:   dnaber
Date:     2012-08-19 19:56:23 +0000 (Sun, 19 Aug 2012)
Log Message:
-----------
avoid NullPointerException

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/views/homepage/checkText.gsp

Modified: trunk/ltcommunity/grails-app/views/homepage/checkText.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/homepage/checkText.gsp   2012-08-19 
19:48:56 UTC (rev 7888)
+++ trunk/ltcommunity/grails-app/views/homepage/checkText.gsp   2012-08-19 
19:56:23 UTC (rev 7889)
@@ -50,7 +50,7 @@
                 <select name="lang">
                     <g:each in="${languages}" var="lang">
                         <g:set var="codeWithCountry" 
value="${lang.countryVariants?.size() == 1 && lang.countryVariants[0] != 'ANY' 
? lang.shortName + '-' +lang.countryVariants[0] : lang.shortName}"/>
-                        <g:set var="selected" 
value="${language.getShortNameWithVariant() == codeWithCountry ? 'selected' : 
''}"/>
+                        <g:set var="selected" 
value="${language?.getShortNameWithVariant() == codeWithCountry ? 'selected' : 
''}"/>
                         <g:if test="${!lang.hasVariant()}">
                             <option ${selected} 
value="${codeWithCountry}">${lang.name}</option>
                         </g:if>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to