Author: jleroux
Date: Wed Aug 25 15:19:05 2010
New Revision: 989166
URL:
http://svn.apache.org/viewvc?rev=989166&view=revLog:
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 {