Bug 66900 - [implementation] NPE in AbstractTextEditor.getAction
Summary: [implementation] NPE in AbstractTextEditor.getAction
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-06-14 06:19 EDT by Tom Hofmann CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2004-06-14 06:19:04 EDT
RC2

- no steps, will try to reproduce
- set-up:

src // linked source folder
|- encoding // package, UTF-8
    |- LATIN1Class.java // ISO-8851-1

- I played around with various encodings, suddenly got this:

!ENTRY org.eclipse.ui 4 0 Jun 14, 2004 12:02:23.849
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
        at
org.eclipse.ui.texteditor.AbstractTextEditor.getAction(AbstractTextEditor.java:3647)
        at
org.eclipse.ui.editors.text.EncodingActionGroup.update(EncodingActionGroup.java:430)
        at
org.eclipse.ui.editors.text.EncodingActionGroup$2.menuAboutToShow(EncodingActionGroup.java:357)
        at
org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:286)
        at
org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:370)
        at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:367)
        at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:383)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:116)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:950)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:974)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:955)
        at org.eclipse.swt.widgets.Menu.gtk_show(Menu.java:561)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1174)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3014)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2222)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1362)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1333)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:252)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:272)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
        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:185)
        at org.eclipse.core.launcher.Main.run(Main.java:638)
        at org.eclipse.core.launcher.Main.main(Main.java:622)
java.lang.NullPointerException
Comment 1 Kai-Uwe Maetzel CLA 2004-06-16 09:18:39 EDT
This implies that the editor for which the menu is opened has already been 
disposed.
Comment 2 Dani Megert CLA 2004-06-16 09:55:03 EDT
Any other dump in .log?
There's no posted code invoked here.
Comment 3 Tom Hofmann CLA 2004-06-16 10:19:21 EDT
No, in that case, this was the first exception in the log for that session.
Comment 4 Dani Megert CLA 2005-06-04 11:10:30 EDT
We can't reproduce. Tried again using N20050603-0010.
Comment 5 Dani Megert CLA 2007-06-22 09:58:47 EDT
Get rid of deprecated state.
Comment 6 Dani Megert CLA 2007-06-22 10:04:13 EDT
.