Project: Birt
Bug 117256 [Smoke]NullPointException is thrown when right click items in Master Page header/footer
Reported: 2005-11-21 00:13:35 | Status: closed fixed

Description: NullPointException is thrown when right click items in Master Page header/footer Steps to reproduce: 1. Insert a report item to master page header/footer 2. Select the report item and right click Expected result: Show context menu. Actual result: java.lang.NullPointerException at org.eclipse.jface.action.ActionContributionItem.<init>(ActionContributionItem.java:159) at org.eclipse.jface.action.ContributionManager.appendToGroup(ContributionManager.java:131) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.providers.SchematicContextMenuProvider.buildContextMenu(SchematicContextMenuProvider.java:261) at org.eclipse.gef.ContextMenuProvider.menuAboutToShow(ContextMenuProvider.java:60) at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:285) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:372) at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:369) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:386) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:117) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848) at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3337) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3064) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1582) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:225) at org.eclipse.swt.widgets.Display.runPopups(Display.java:3106) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2707) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948)

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/CreatePlaceHolderAction.java