Project: Eclipse_Platform_UI
Bug 165542 [Trim] NPE in WidgetProxy.fill
Reported: 2006-11-22 16:52:02 | Status: verified fixed

3.3 M3 - had a configuration error that resulted in the class for a trim contribution being unable to load - on startup, it got an NPE due to a null widget field in: Thread [main] (Suspended (exception NullPointerException)) WidgetProxy.fill(Composite, int, int) line: 139 TrimBarManager$STrimBuilder.renderTrim(Composite, SWidget, int) line: 448 TrimBarManager$STrimBuilder.renderGroup(ILayoutNode, boolean) line: 367 TrimBarManager$STrimBuilder.build(SMenuLayout, boolean) line: 314 TrimBarManager.update(boolean, boolean, boolean) line: 94 WorkbenchWindow.updateLayoutDataForContents() line: 3341 WorkbenchWindow.setLayoutDataForContents() line: 3352 WorkbenchWindow.createDefaultContents(Shell) line: 1010 WorkbenchWindowConfigurer.createDefaultContents(Shell) line: 610 IDEWorkbenchWindowAdvisor(WorkbenchWindowAdvisor).createWindowContents(Shell) line: 267 WorkbenchWindow.createContents(Composite) line: 897 WorkbenchWindow(Window).create() line: 426 Workbench.busyOpenWorkbenchWindow(String, IAdaptable) line: 795 Workbench.access$13(Workbench, String, IAdaptable) line: 791 Workbench$18.run() line: 1587 BusyIndicator.showWhile(Display, Runnable) line: 67 Workbench.openWorkbenchWindow(String, IAdaptable) line: 1584 OpenInNewWindowAction.run() line: 104 OpenInNewWindowAction(Action).runWithEvent(Event) line: 499 ActionContributionItem.handleWidgetSelection(Event, boolean) line: 539 ActionContributionItem.access$2(ActionContributionItem, Event, boolean) line: 488 ActionContributionItem$5.handleEvent(Event) line: 400 EventTable.sendEvent(Event) line: 66 MenuItem(Widget).sendEvent(Event) line: 925 Display.runDeferredEvents() line: 3463 Display.readAndDispatch() line: 3077 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 1924 Workbench.runUI() line: 1888 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 419 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 IDEApplication.run(Object) line: 95 PlatformActivator$1.run(Object) line: 78 EclipseAppLauncher.runApplication(Object) line: 104 EclipseAppLauncher.start(Object) line: 74 EclipseStarter.run(Object) line: 348 EclipseStarter.run(String[], Runnable) line: 165 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 64 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 615 Main.invokeFramework(String[], URL[]) line: 341 Main.basicRun(String[]) line: 285 Main.run(String[]) line: 987 Main.main(String[]) line: 962 The workbench still came up though, but the layout of the top trim was too high.

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