Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315979

Summary: Investigate issues with ChangeLog plugins when using existing workspace
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: ChangeLogAssignee: Phil Muldoon <pmuldoon>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, jjohnstn, linux.changelog-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Overholt CLA 2010-06-07 09:19:44 EDT
I installed a clean RC4 SDK and then installed the latest Linux Tools build ().  I then re-started with an existing workspace and I get the stack trace below when trying to enter a ChangeLog entry.  I can also reproduce with a clean workspace.

java.lang.NullPointerException
        at org.eclipse.linuxtools.changelog.core.actions.InsertChangeLogKeyHandler.getChangelog(InsertChangeLogKeyHandler.java:60)
        at org.eclipse.linuxtools.changelog.core.actions.InsertChangeLogKeyHandler.execute(InsertChangeLogKeyHandler.java:149)
        at org.eclipse.linuxtools.changelog.core.actions.InsertChangeLogKeyHandler.run(InsertChangeLogKeyHandler.java:193)
        at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:289)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1525)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2839)
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4794)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4372)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8163)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1239)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2224)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3169)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        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:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Andrew Overholt CLA 2010-06-07 13:59:15 EDT
This looks like another issue with an unclean state or something.  I don't know how this happens but it's something we should investigate if we can reproduce it.
Comment 2 Alexander Kurtakov CLA 2011-09-29 08:20:14 EDT
Andrew, is this bug still valid?
I didn't manage to reproduce such NPE.
Comment 3 Andrew Overholt CLA 2011-10-03 16:42:02 EDT
No longer occurring AFAICT.