Bug 6869 - NPE while opening Search dialog
Summary: NPE while opening Search dialog
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux-Motif
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-12 14:35 EST by Jared Burns CLA
Modified: 2001-12-13 04:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2001-12-12 14:35:44 EST
Clicking the "Open a Type in the Editor" button yielded the following NPE in my
host (20011211 plus latest jdt-ui plugin):

Log: Wed Dec 12 13:41:08 CST 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Wed Dec 12 13:41:08 CST 2001
4 org.eclipse.ui 0 java.lang.NullPointerException
java.lang.NullPointerException
	at
org.eclipse.jdt.internal.ui.search.JavaSearchPage.updateCaseSensitiveCheckbox(JavaSearchPage.java:405)
	at
org.eclipse.jdt.internal.ui.search.JavaSearchPage.access$5(JavaSearchPage.java:404)
	at
org.eclipse.jdt.internal.ui.search.JavaSearchPage$3.modifyText(JavaSearchPage.java:376)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java(Compiled
Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Control.processModify(Control.java:1211)
	at org.eclipse.swt.widgets.Widget.processEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code))
	at org.eclipse.swt.internal.motif.OS.XmTextSetString(Native Method)
	at org.eclipse.swt.widgets.Combo.removeAll(Combo.java:907)
	at org.eclipse.swt.widgets.Combo.setItems(Combo.java:1061)
	at
org.eclipse.jdt.internal.ui.search.JavaSearchPage.setVisible(JavaSearchPage.java:299)
	at org.eclipse.search.internal.ui.SearchDialog.create(SearchDialog.java:130)
	at org.eclipse.jface.window.Window.open(Window.java:510)
	at
org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:45)
	at
org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:32)
	at org.eclipse.ui.internal.PluginAction.run(PluginAction.java:181)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java(Compiled
Code))
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled
Code))
	at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:764)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Erich Gamma CLA 2001-12-12 16:29:40 EST
the case sensitivity changes were not released into the integration build.
Dani pls confirm
Comment 2 Dani Megert CLA 2001-12-12 17:12:17 EST
Yes, added after 20011211.

Please confirm the test case.
The log looks as if "Search" has been pressed.
It is not possible to open (or have open) the Search dialog in combination with 
"Open a Type in the Rditor" action.

Can't reproduce with code checked in HEAD.
Please provide a test case with the steps.
Comment 3 Dani Megert CLA 2001-12-13 04:51:26 EST
Ah - found the problem: setItems triggers a modify event under Linux while it 
does not under Windows. Protected code against this now and filed a reminder 
report against platform-ui to ask if this is ok.