Project: Birt
Bug 212983 Exception keeps poping up when change master page margin unit and this workspace can not be used any more
Reported: 2007-12-14 02:47:06 | Status: closed fixed

Description: Exception keeps poping up when change master page margin unit and this workspace can not be used any more. Build number: 2.3.0.v20071214-1345 Steps to reproduce: 1. New a report, change to master page tab, change master page margin unit. Expected result: It works correctly. Actual result: Exception keeps poping up and this workspace can not be used any more. Error log: java.lang.NullPointerException at org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.MarginsPropertyDescriptorProvider.getUnitDisplayName(MarginsPropertyDescriptorProvider.java:37) at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.MarginsPropertyDescriptor.load(MarginsPropertyDescriptor.java:89) at org.eclipse.birt.report.designer.internal.ui.views.attributes.section.MarginsSection.load(MarginsSection.java:167) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.AttributePage.refresh(AttributePage.java:76) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage.getCategoryPane(BaseAttributePage.java:256) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage.processListSelected(BaseAttributePage.java:160) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage.access$5(BaseAttributePage.java:147) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage$1.handleEvent(BaseAttributePage.java:111) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:971) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:715) at org.eclipse.birt.report.designer.internal.ui.swt.custom.TabbedPropertyList.select(TabbedPropertyList.java:663) at org.eclipse.birt.report.designer.internal.ui.swt.custom.TabbedPropertyList$2.mouseUp(TabbedPropertyList.java:130) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:206) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3744) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3355) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2395) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2359) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2225) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:468) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:463) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:515) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455) at org.eclipse.equinox.launcher.Main.run(Main.java:1193)

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/provider/MarginsPropertyDescriptorProvider.java