Bug 402040 - NPE trying to open the search dialog
Summary: NPE trying to open the search dialog
Status: CLOSED DUPLICATE of bug 403040
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-02-28 12:34 EST by Pascal Rapicault CLA
Modified: 2013-05-06 06:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2013-02-28 12:34:08 EST
I20130219-1600

When I do Search > File from the menu I get the following NPE.

java.lang.NullPointerException
	at org.eclipse.search.internal.ui.SearchDialog.isOldSearchView(SearchDialog.java:272)
	at org.eclipse.search.internal.ui.SearchDialog.getActiveEditor(SearchDialog.java:257)
	at org.eclipse.search.internal.ui.SearchDialog.<init>(SearchDialog.java:153)
	at org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:53)
	at org.eclipse.search.ui.NewSearchUI.openSearchDialog(NewSearchUI.java:299)
	at org.eclipse.search.internal.ui.OpenFileSearchPageAction.run(OpenFileSearchPageAction.java:46)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1108)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:992)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:99)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:600)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:555)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Comment 1 Dani Megert CLA 2013-03-01 04:03:17 EST
I don't see how this could ever happen. Do you have steps or a workspace that you can share, so we can reproduce the issue?
Comment 2 Pascal Rapicault CLA 2013-03-01 09:34:04 EST
I don't have any steps. I restarted and the problem fixed itself.
Comment 3 Dani Megert CLA 2013-03-11 05:15:13 EDT
Please reopen if you see this again, or have steps.
Comment 4 Dani Megert CLA 2013-03-12 10:06:09 EDT
.

*** This bug has been marked as a duplicate of bug 403040 ***
Comment 5 Peter Butkovic CLA 2013-05-06 06:47:08 EDT
any chance to get this one fixed in 4.2?
Comment 6 Dani Megert CLA 2013-05-06 06:50:42 EDT
(In reply to comment #5)
> any chance to get this one fixed in 4.2?

There are no further 4.2.x releases. The fix is in 4.3 M7 [1] and will be in the Kepler release.

[1] http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M7-201305020800/