jankrause / idocit

Automatically exported from code.google.com/p/idocit
0 stars 0 forks source link

NullPointerException after closing the Recommendations View #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the Recommendations View and a Java file.
2. Close the Recommendations View.
3. Select a method in the Java file.

What is the expected output? What do you see instead?
I expect to see a cleared Recommendations View, but a NullPointerException 
occurs (see stack trace below).

!ENTRY org.eclipse.ui.workbench 4 0 2012-08-23 18:26:03.791
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
    at de.akra.idocit.java.ui.JavaEditorSelectionListener.selectionChanged(JavaEditorSelectionListener.java:119)
    at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
    at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:289)
    at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:135)
    at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125)
    at org.eclipse.ui.internal.WWinPartService$WWinListener.partActivated(WWinPartService.java:38)
    at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:70)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
    at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:68)
    at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:192)
    at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:306)
    at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
    at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
    at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3636)
    at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)
    at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)
    at org.eclipse.ui.internal.WorkbenchPage.makeActive(WorkbenchPage.java:1324)
    at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1304)
    at org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java:1780)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:217)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:439)
    at de.akra.idocit.java.ui.JavaEditorSelectionListenerTest.testSelectionChangedWithNullSelection(JavaEditorSelectionListenerTest.java:142)
    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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

Original issue reported on code.google.com by krauseda...@web.de on 23 Aug 2012 at 4:33

GoogleCodeExporter commented 8 years ago

Original comment by krauseda...@web.de on 23 Aug 2012 at 4:49