Fix 1486390 Exception during execution
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4591 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -250,7 +250,11 @@ public class ViewMemento {
|
||||
ArrayList valuelist = new ArrayList();
|
||||
String[] objects = valueString.split(LIST_SEPARATOR);
|
||||
for (int k = 0; k < objects.length; k++) {
|
||||
valuelist.add(new Integer(objects[k]));
|
||||
if (objects[k].trim().length() == 0) {
|
||||
valuelist.add(new Integer(0));
|
||||
} else {
|
||||
valuelist.add(new Integer(objects[k]));
|
||||
}
|
||||
}
|
||||
return valuelist;
|
||||
}
|
||||
|
Reference in New Issue
Block a user