Project: Eclipse_Platform_UI
Bug 22282 ctrl+enter will throw null pointer
Reported: 2002-08-08 17:57:20 | Status: verified fixed

I opened a file with the multi-page editor example. - pressed ctrl+enter at the same time - * the editor throws an unhandled null pointer, rendering the editor useless until you close and reopen the editor - with this stacktrace: java.lang.NullPointerException at org.eclipse.ui.texteditor.IncrementalFindTarget.statusMessage (IncrementalFindTarget.java:456) at org.eclipse.ui.texteditor.IncrementalFindTarget.updateStatus (IncrementalFindTarget.java:250) at org.eclipse.ui.texteditor.IncrementalFindTarget.beginSession (IncrementalFindTarget.java:134) at org.eclipse.ui.texteditor.IncrementalFindAction.run (IncrementalFindAction.java:75) at org.eclipse.ui.internal.registry.AcceleratorScope$AcceleratorAction.run (AcceleratorScope.java:250) at org.eclipse.ui.internal.registry.AcceleratorScope.processKey (AcceleratorScope.java:227) at org.eclipse.ui.internal.KeyBindingService.processKey (KeyBindingService.java:100) at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationCodeTrigger.verifyKey (AbstractTextEditor.java:439) at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey (TextViewer.java:328) at org.eclipse.swt.custom.StyledTextListener.handleEvent (StyledTextListener.java:49) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:634) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:4590) at org.eclipse.swt.custom.StyledText$8.handleEvent(StyledText.java:4337) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/AbstractTextEditor.java