Project: Eclipse_Platform_UI
Bug 67891 [Workbench] potential NPE in WorkbenchWindow.isCoolBarLocked
Reported: 2004-06-18 16:15:06 | Status: resolved fixed

The body of this method is protected boolean isCoolBarLocked() { return getCoolBarManager().getLockLayout(); } The javadoc for getCoolBarManager says that it may return null so we need to check here. I haven't seen this in any real product, just in one of my test cases. However only when the LockToolBarAction has been installed AND the workbench window is closed from within WorkbenchAdvisor.postStartup.

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