Project: Birt
Bug 261578 [smoke]NPE occurs when creating a label and deleting a report item
Reported: 2009-01-19 20:50:32 | Status: closed fixed

Description: NPE block the deleting operation Build number: 2.5.0.v20090120-0630 Steps to reproduce: 1, Select a report item 2, Press Delete key Expected result: The report item is deleted successfully Actual result: NPE blocks the deleting Error log: java.lang.NullPointerException at org.eclipse.birt.report.designer.internal.ui.command.CommandWrap4DE.getLabel(CommandWrap4DE.java:79) at org.eclipse.gef.ui.actions.StackAction.getLabelForCommand(StackAction.java:43) at org.eclipse.gef.ui.actions.UndoAction.refresh(UndoAction.java:81) at org.eclipse.gef.ui.actions.WorkbenchPartAction.update(WorkbenchPartAction.java:155) at org.eclipse.birt.report.designer.internal.ui.editors.parts.GraphicalEditorWithFlyoutPalette.updateActions(GraphicalEditorWithFlyoutPalette.java:718) at org.eclipse.birt.report.designer.internal.ui.editors.parts.GraphicalEditorWithFlyoutPalette.updateStackActions(GraphicalEditorWithFlyoutPalette.java:727) at org.eclipse.birt.report.designer.ui.editors.pages.ReportLayoutEditorFormPage$1.stackChanged(ReportLayoutEditorFormPage.java:54) at org.eclipse.birt.report.model.activity.ActivityStack.sendNotifcations(ActivityStack.java:853) at org.eclipse.birt.report.model.activity.ActivityStack.commit(ActivityStack.java:723) at org.eclipse.birt.report.designer.internal.ui.command.WrapperCommandStack.execute(WrapperCommandStack.java:93) at org.eclipse.gef.ui.actions.WorkbenchPartAction.execute(WorkbenchPartAction.java:76) at org.eclipse.gef.ui.actions.DeleteAction.run(DeleteAction.java:125) at org.eclipse.birt.report.designer.internal.ui.editors.parts.GraphicalEditorWithFlyoutPalette$3.run(GraphicalEditorWithFlyoutPalette.java:346) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/command/CommandWrap4DE.java