[ 2666113 ] leave input gives nullpointer error

This commit is contained in:
Heng Sin Low 2009-03-06 00:34:54 +00:00
parent 1b1b5d13f6
commit 4840407796
1 changed files with 3 additions and 2 deletions

View File

@ -309,7 +309,8 @@ ContextMenuListener, IZoomableEditor
}
private boolean isValueChange(Object newValue) {
return (oldValue == null && newValue != null) || (oldValue != null && newValue == null) || (!oldValue.equals(newValue));
return (oldValue == null && newValue != null) || (oldValue != null && newValue == null)
|| ((oldValue != null && newValue != null) && !oldValue.equals(newValue));
}
public String[] getEvents()