Bug 18018

Summary: NPE in IncrementalFindTarget
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: peter_burka
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2002-05-28 05:39:28 EDT
1. Open the plugin.xml editor
2. Switch to the source page
3. press ctrl-J
==> nothing happens and the error is written to .log:

!ENTRY org.eclipse.core.resources 1 4 May 28, 2002 11:48:30.516
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 May 28, 2002 11:48:30.531
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at 
	at
org.eclipse.ui.texteditor.IncrementalFindTarget.beginSession(IncrementalFindTarget.java:121)
	at org.eclipse.ui.texteditor.IncrementalFindAction.run(IncrementalFindAction.java:75)
	at
org.eclipse.ui.texteditor.RetargetTextEditorAction.run(RetargetTextEditorAction.java:127)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
	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.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java(Compiled
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.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:1068)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Claude Knaus CLA 2002-05-30 09:49:30 EDT
fixed >= 20020530
Comment 2 Claude Knaus CLA 2002-05-31 12:07:36 EDT
*** Bug 17969 has been marked as a duplicate of this bug. ***