#84 NullPointerException when activating editor on package-info.

closed-fixed
None
5
2012-11-13
2012-11-12
Stephen
No

When opening or otherwise selecting a "package-info.java" file (javadoc standard), I get the following exception:

!ENTRY org.eclipse.ui.workbench 4 2 2012-11-12 15:18:06.836
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
at org.moreunit.ui.MissingTestmethodViewPart.partActivated(Unknown Source)
at org.moreunit.ui.MissingTestmethodViewPart.partBroughtToTop(Unknown Source)
at org.eclipse.ui.part.PageBookView$4.partBroughtToTop(PageBookView.java:1018)
at org.eclipse.ui.internal.PartListenerList2$2.run(PartListenerList2.java:85)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
at org.eclipse.ui.internal.PartListenerList2.firePartBroughtToTop(PartListenerList2.java:83)
at org.eclipse.ui.internal.PartService.firePartBroughtToTop(PartService.java:212)
at org.eclipse.ui.internal.WorkbenchPagePartList.firePartBroughtToTop(WorkbenchPagePartList.java:76)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEditorChanged(WorkbenchPagePartList.java:52)
at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.java:162)
at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1359)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3633)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3163)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:281)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:239)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1462)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1558)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3309)
at org.eclipse.swt.widgets.Canvas.sendFocusEvent(Canvas.java:74)
at org.eclipse.swt.widgets.Display.checkFocus(Display.java:649)
at org.eclipse.swt.widgets.Shell.makeFirstResponder(Shell.java:1260)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5603)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2102)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2299)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5557)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5002)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5151)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3616)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Discussion

    • assigned_to: nobody --> gianasista
     
    • status: open --> closed-fixed
     
  • Fixed in multi-lang-support branch which will be integrated with version 3.X.

     
  • Stephen
    Stephen
    2012-11-13

    Thank you for fixing this so quickly.
    I'm not sure when the multi-lang release is due out, but if it's more than a few weeks out I ask you to fix this in the main branch and do an interim release.
    We make heavy use of package-info.java javadoc and every time I switch to an editor with package-info.java in it I get a modal dialog box in eclipse. It's getting very annoying.
    Thanks again.

     
  • Stephen
    Stephen
    2012-11-13

    Ah - Just found out that this was caused by the Missing Test Method and Missing Test views.
    I closed those views and I no longer get modal dialog boxes up every time I switch to the package-info.java editor.
    You may ignore my request for an interim release.

     
  • Hi Stephen, if you want to use the latest version you can install from:
    http://moreunit.sourceforge.net/moreunit-3-alpha
    This is our newest version which should be released in a while (and has lot's of changes and new features).