@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();
}