Project: Birt
Bug 128150 [SMOKE][SPM-Linux]Table Item can't be changed to template item
Reported: 2006-02-15 22:50:40 | Status: closed fixed

[SMOKE][Regression][SPM-Linux]Table Item can't be changed to template item Setp: New a template and insert a table, right click to create Template Report Item. An error message pop up. org.eclipse.birt.report.designer.core.runtime.GUIException: Caused by java.lang.NullPointerException. at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(GUIException.java:76) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:123) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:105) at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.handleException(AbstractElementAction.java:132) at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.run(AbstractElementAction.java:91) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.actions.WrapperSelectionAction.run(WrapperSelectionAction.java:60) at org.eclipse.jface.action.Action.runWithEvent(Action.java:492) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1059) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3061) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2743) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1762) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1726) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:397) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.NullPointerException at org.eclipse.birt.report.designer.core.model.schematic.RowHandleAdapter.getTableParent(RowHandleAdapter.java:242) at org.eclipse.birt.report.designer.core.model.schematic.RowHandleAdapter.getType(RowHandleAdapter.java:156) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.handles.RowHandle.getImage(RowHandle.java:258) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.handles.RowHandle.paintFigure(RowHandle.java:166) at org.eclipse.draw2d.Figure.paint(Figure.java:1049) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119) at org.eclipse.draw2d.Figure.paint(Figure.java:1051) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119) at org.eclipse.draw2d.Figure.paint(Figure.java:1051) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119) at org.eclipse.draw2d.Figure.paint(Figure.java:1051) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087) at org.eclipse.draw2d.Figure.paintClientArea(Figur

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/handles/RowHandle.java