Project: Birt
Bug 251960 Insert cube into another crosstab's header leads Exception
Reported: 2008-10-23 22:16:37 | Status: closed fixed

Description: Insert cube into another crosstab's header leads Exception Build number:2.3.1.v20080702 Steps to reproduce: 1. New a cube. 2. Insert a crosstab to Layout and select the crosstab's header 3. Right click the cube and select Insert into Layout. Expected result: No exception thrown out in error log page Actual result: Error occurred. Error log: java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79) at java.util.Stack.pop(Stack.java:61) at org.eclipse.birt.report.model.activity.ActivityStack.rollback(ActivityStack.java:746) at org.eclipse.birt.report.item.crosstab.internal.ui.editors.action.InsertCubeInLayoutAction.run(InsertCubeInLayoutAction.java:409) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)

Files changed in fix:
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/action/InsertCubeInLayoutAction.java