Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 56195 - NPE invoking search on working set and then cancelling
Summary: NPE invoking search on working set and then cancelling
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Thomas M??der CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-25 13:44 EST by Jean-Michel Lemieux CLA
Modified: 2004-03-29 03:36 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 Jean-Michel Lemieux CLA 2004-03-25 13:44:02 EST
I20040325
1. select a method name
2. in the ctx menu select References > Working Set
3. Cancel the working set dialog
4. NPE is in log

java.lang.NullPointerException
	at org.eclipse.search.ui.NewSearchUI.runQuery(NewSearchUI.java:43)
	at org.eclipse.jdt.ui.actions.FindAction.performNewSearch(FindAction.java:331)
	at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:278)
	at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:246)
	at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:216)
	at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:550)
	at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:502)
	at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:435)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2584)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2262)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1562)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1536)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:288)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:116)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:315)
	at org.eclipse.core.launcher.Main.run(Main.java:740)
	at org.eclipse.core.launcher.Main.main(Main.java:724)
Comment 1 Thomas M??der CLA 2004-03-26 03:45:50 EST
A misssing null check. The fix is trivial.
Comment 2 Dirk Baeumer CLA 2004-03-26 04:36:53 EST
Not critical for M8. Only happens when search in working set is done using the 
dialog and when the dialog is canceled. Causes no harm to the workspace except 
NPE in log.
Comment 3 Thomas M??der CLA 2004-03-29 03:36:29 EST
fixed