Bug 147625 [Regression]A library without defaultTheme
Details: [Regression]A library without defaultTheme Step: 1.New a library. 2.Delete the defaultTheme 3.New a theme. 4.New a style on the newTheme. 5.Add a label and switch to property editor tab Actual result: pop up the NullPoint Exception java.lang.NullPointerException at org.eclipse.birt.report.designer.util.DEUtil.getStyles(DEUtil.java:1471) at org.eclipse.birt.report.designer.util.DEUtil.getStyles(DEUtil.java:1429) at org.eclipse.birt.report.designer.ui.views.attributes.providers.ChoiceSetFactory.getStyles(ChoiceSetFactory.java:598) at org.eclipse.birt.report.designer.internal.ui.views.attributes.widget.SimpleComboPropertyDescriptor.resetUIData(SimpleComboPropertyDescriptor.java:170) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.AttributePage.refreshValues(AttributePage.java:125) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.AttributePage.setInput(AttributePage.java:110) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.GeneralPage.setInput(GeneralPage.java:33) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage.processListSelected(BaseAttributePage.java:182) at org.eclipse.birt.report.designer.internal.ui.views.attributes.page.BaseAttributePage.setInput(BaseAttributePage.java:242) at org.eclipse.birt.report.designer.ui.views.attributes.CategoryPageGenerator.createTabItems(CategoryPageGenerator.java:72) at org.eclipse.birt.report.designer.ui.views.attributes.LabelPageGenerator.createTabItems(LabelPageGenerator.java:41) at org.eclipse.birt.report.designer.ui.views.attributes.AttributesBuilder.createPages(AttributesBuilder.java:79) at org.eclipse.birt.report.designer.ui.views.attributes.AttributeView.showPropertiesPage(AttributeView.java:324) at org.eclipse.birt.report.designer.ui.views.attributes.AttributeView.setFocus(AttributeView.java:347) at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:309) at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:798) at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:781) at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:123) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709) at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) 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:400) 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:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
* 
	 * @param handle
	 *            the handle of the element which needs binding columns
	 * @return the holder for the element,or itself if no holder available
	 */
	public static ReportItemHandle getBindingHolder( DesignElementHandle handle )
	{
		if ( handle instanceof ReportElementHandle )
		{
			if ( handle instanceof ListingHandle )
			{
				return (ReportItemHandle) handle;
			}
			if ( handle instanceof ReportItemHandle )
			{
				if ( ( (ReportItemHandle) handle ).getDataSet( ) != null
						|| ( (ReportItemHandle) handle )
								.columnBindingsIterator( ).hasNext( ) )
				{
					return (ReportItemHandle) handle;
				}
			}
			ReportItemHandle result = getBindingHolder( handle.getContainer( ) );
			if ( result == null && handle instanceof ReportItemHandle
					&& !( handle instanceof GridHandle ) )
			{
				result = (ReportItemHandle) handle;
			}
			return result;
		}