svn commit: r989166 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r989166 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java

jleroux@apache.org
Author: jleroux
Date: Wed Aug 25 15:19:05 2010
New Revision: 989166

URL: http://svn.apache.org/viewvc?rev=989166&view=rev
Log:
Fix a bug when there are no comments at all.

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java?rev=989166&r1=989165&r2=989166&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/labelmanager/LabelManagerFactory.java Wed Aug 25 15:19:05 2010
@@ -193,7 +193,8 @@ public class LabelManagerFactory {
         for (int i = 0; i < localeNames.size(); i++) {
             String localeName = localeNames.get(i);
             String localeValue = localeValues.get(i);
-            String localeComment = localeComments.get(i);
+            String localeComment = null;
+            if (UtilValidate.isNotEmpty(localeComments)) localeComment = localeComments.get(i);
             if (UtilValidate.isNotEmpty(localeValue) || UtilValidate.isNotEmpty(localeComment)) {
                 if (label == null) {
                     try {