Project: Eclipse_Platform_UI
Bug 14238 NPE at ViewPane.drawGradient() while restoring workspace
Reported: 2002-04-19 12:06:40 | Status: resolved fixed

On M5 drive, following error observed several times while restoring workspace. <?xml version="1.0" encoding="UTF-8"?> <log> <log-entry date="Fri Apr 19 10:29:50 EDT 2002"> <status plugin-id="org.eclipse.ui" severity="WARNING" message="Problems occurred when invoking code from plug-in: org.eclipse.ui." code="2"> <exception message="null" trace=" java.lang.NullPointerException at org.eclipse.ui.internal.ViewPane.drawGradient(ViewPane.java:341) at org.eclipse.ui.internal.ViewPane.shellActivated(ViewPane.java:427) at org.eclipse.ui.internal.WorkbenchWindow$9.shellActivated (WorkbenchWindow.java:1180) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:155) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827) at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE (Decorations.java:1362) at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:972) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2640) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1334) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method) at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke (IDispatch.java:58) at org.eclipse.swt.ole.win32.OleAutomation.invoke (OleAutomation.java:422) at org.eclipse.swt.ole.win32.OleAutomation.invoke (OleAutomation.java:385) at com.ibm.etools.webedit.wysiwyg.HbxHTMLEditor.openDocument (HbxHTMLEditor.java:1584) at com.ibm.etools.webedit.wysiwyg.DesignPage.load(DesignPage.java:451) at com.ibm.etools.webedit.page.PageDesigner.createDesignPage (PageDesigner.java:332) at com.ibm.etools.webedit.page.PageDesigner.createPages (PageDesigner.java:355) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl (MultiPageEditorPart.java:165) at org.eclipse.ui.internal.PartPane$1.run(PartPane.java:53) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:838) at org.eclipse.core.runtime.Platform.run(Platform.java:411) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:51) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:93) at org.eclipse.ui.internal.EditorWorkbook.createPage (EditorWorkbook.java:223) at org.eclipse.ui.internal.EditorWorkbook.createControl (EditorWorkbook.java:188) at org.eclipse.ui.internal.PartSashContainer.createControl (PartSashContainer.java:177) at org.eclipse.ui.internal.PartSashContainer.createControl (PartSashContainer.java:177) at org.eclipse.ui.internal.PerspectivePresentation.activate (PerspectivePresentation.java:88) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:565) at org.eclipse.ui.internal.WorkbenchPage.onActivate (WorkbenchPage.java:1410) at org.eclipse.ui.internal.WorkbenchWindow$6.run (WorkbenchWindow.java:1068) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage (WorkbenchWindow.java:1055) at org.eclipse.ui.internal.WorkbenchWindow.restoreState (WorkbenchWindow.java:972) at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:794) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:632) at org.eclipse.core.internal.runtime.InternalPlatform.run (InternalPlatform.java:838) at org.eclipse.core.runtime.Platform.run(Platform.java:411) at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.java:610) at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:667) at org.eclipse.ui.internal.Workbench.init(Workbench.java:503) at org.eclipse.ui.internal.Workbench.run(Workbench.java:816) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52) "> </exception> </status> </log-entry> 1. Open eclipse, 2. Open our editor (our editor is an ActiveX control) 3. Close eclipse 4. Restart eclipse Then sometimes the above error occurs.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ViewPane.java