diff --git a/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViewMemento.java b/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViewMemento.java index 397c297378..657c6bf0c1 100644 --- a/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViewMemento.java +++ b/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViewMemento.java @@ -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; }