Project: Eclipse_Platform_UI
Bug 92988 [Viewers] potential NPE in AbstractTreeViewer
Reported: 2005-04-27 15:22:32 | Status: verified fixed

I0426, found with FindBugs 1. AbstractTreeViewer line 832 invokes "siblings.length", but the "if" statement above implies that siblings could be null here. 2. StringFieldEditor line 187 does an unnecessary null check since Text.getText() never returns null (FindBugs was using this to point to line 190 as a potential NPE).

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/StringFieldEditor.java bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java