Project: Eclipse_Platform_UI
Bug 260937 NPE in WorkbenchStatusDialogManager.addStatusAdapter()
Reported: 2009-01-13 17:14:18 | Status: verified fixed

Our adopter product has support for users to anonymously send in their .log files for offline analysis. Over the past few months, there have been 350 reports of the following NPE. Since this is offline, I do not have steps to reproduce. !ENTRY org.eclipse.ui 4 0 !MESSAGE Error occurred during status handling !STACK 0 java.lang.NullPointerException at org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(Unknown Source) at org.eclipse.ui.statushandlers.WorkbenchErrorHandler.handle(Unknown Source) at org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handle(Unknown Source) at org.eclipse.ui.internal.WorkbenchErrorHandlerProxy.handle(Unknown Source) at org.eclipse.ui.statushandlers.StatusManager.handle(Unknown Source) at org.eclipse.ui.statushandlers.StatusManager.handle(Unknown Source) at org.eclipse.ui.statushandlers.StatusManager.handle(Unknown Source) at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopException(Unknown Source) at org.eclipse.ui.internal.ExceptionHandler.handleException(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.access$4(Unknown Source) at org.eclipse.ui.internal.Workbench$5.run(Unknown Source) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source) at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source) at org.eclipse.equinox.launcher.Main.run(Unknown Source) at org.eclipse.equinox.launcher.Main.main(Unknown Source)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandlers/WorkbenchStatusDialogManager.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/statushandlers/StatusDialogManagerTest.java