Community
Participate
Working Groups
If you bring up the inplace xref view and then type some text in such that there's nothing in the view (nothing matches the text), press TAB and then RETURN, you get the following NPE: java.lang.NullPointerException at org.eclipse.contribution.xref.internal.ui.actions.DoubleClickAction.run(DoubleClickAction.java:44) at org.eclipse.contribution.xref.internal.ui.inplace.XReferenceInplaceDialog$6.doubleClick(XReferenceInplaceDialog.java:392) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:720) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044) at org.eclipse.core.runtime.Platform.run(Platform.java:783) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) ........ What should happen is nothing (the view shouldn't disappear or anything).
The fix is to put an extra check in DoubleClickAction.run(): if (sel instanceof TreeObject) { .... } I've also written a manual test for this. Fix is in build: BUILD COMPLETE - build.446 Date of build: 07/07/2005 10:55:37 Time to build: 47 minutes 21 seconds Last changed: 07/07/2005 10:40:11