A null input must be handled when the component is disposed.
Change-Id: I915c68aa3d15b4d5a3cbd89220bd3701f262fee1
@Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- this.rootEntry = createModuleTreeEntry((Collection<String>)newInput);
+ if(newInput != null)
+ this.rootEntry = createModuleTreeEntry((Collection<String>)newInput);
}
@Override
public Object[] getElements(Object inputElement) {
+ if(rootEntry == null)
+ return new Object[0];
return rootEntry.children().toArray();
}