Project: appceleratorstudio
Issue TISTUD-3975: NPE when resetting the default Studio perspective
{code} java.lang.NullPointerException com.appcelerator.titanium.core.TitaniumProject.(TitaniumProject.java:83) com.appcelerator.titanium.codeprocessor.core.internal.ResultsVaidatorPropertyTester.test(ResultsVaidatorPropertyTester.java:35) org.eclipse.core.internal.expressions.Property.test(Property.java:58) org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99) org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:29) org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:189) org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72) org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:29) org.eclipse.core.internal.expressions.ReferenceExpression.evaluate(ReferenceExpression.java:70) org.eclipse.ui.internal.services.EvaluationResultCache.evaluate(EvaluationResultCache.java:74) org.eclipse.ui.internal.services.ExpressionAuthority.evaluate(ExpressionAuthority.java:165) org.eclipse.ui.internal.services.EvaluationAuthority.refsWithSameExpression(EvaluationAuthority.java:153) org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:129) org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311) org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290) org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99) org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401) org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300) org.eclipse.ui.internal.services.WorkbenchSourceProvider$2.windowDeactivated(WorkbenchSourceProvider.java:270) org.eclipse.ui.internal.Workbench$15.run(Workbench.java:1026) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.Workbench.fireWindowDeactivated(Workbench.java:1024) org.eclipse.ui.internal.WorkbenchWindow$29.shellDeactivated(WorkbenchWindow.java:3169) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:111) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1461) org.eclipse.swt.widgets.Shell.windowDidResignKey(Shell.java:2163) org.eclipse.swt.widgets.Display.windowProc(Display.java:5517) org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) org.eclipse.swt.internal.cocoa.NSWindow.makeKeyAndOrderFront(NSWindow.java:198) org.eclipse.swt.widgets.Shell.makeKeyAndOrderFront(Shell.java:1252) org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1937) org.eclipse.swt.widgets.Shell.open(Shell.java:1330) org.eclipse.jface.window.Window.open(Window.java:797) org.eclipse.ui.internal.statushandlers.InternalDialog.open(InternalDialog.java:327) org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapter(WorkbenchStatusDialogManagerImpl.java:270) org.eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter(WorkbenchStatusDialogManagerImpl.java:197) org.eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStatusDialogManager.java:156) org.eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandler.java:101) org.eclipse.ui.statushandlers.WorkbenchErrorHandler.handle(WorkbenchErrorHandler.java:57) org.eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handle(IDEWorkbenchErrorHandler.java:108) com.appcelerator.titanium.rcp.IDEWorkbenchAdvisor$5.handle(IDEWorkbenchAdvisor.java:836) org.eclipse.ui.internal.WorkbenchErrorHandlerProxy.handle(WorkbenchErrorHandlerProxy.java:36) org.eclipse.ui.statushandlers.StatusManager.handle(StatusManager.java:189) org.eclipse.ui.internal.JFaceUtil$3.show(JFaceUtil.java:70) org.eclipse.jface.util.SafeRunnable.handleException(SafeRunnable.java:67) org.eclipse.core.runtime.SafeRunner.handleException(SafeRunner.java:75) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:44) org.eclipse.core.runtime.Platform.run(Platform.java:888) org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115) org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238) org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:134) org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125) org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50) org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.runtime.Platform.run(Platform.java:888) org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55) org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113) org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242) org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57) org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136) org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3636) org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691) org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663) org.eclipse.ui.internal.WorkbenchPage.makeActive(WorkbenchPage.java:1324) org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1304) org.eclipse.ui.internal.WorkbenchPage.updateVisibility(WorkbenchPage.java:3779) org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3719) org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:1115) org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:1099) org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3814) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3812) org.eclipse.ui.internal.PerspectiveBarContributionItem.select(PerspectiveBarContributionItem.java:124) org.eclipse.ui.internal.PerspectiveBarContributionItem$1.widgetSelected(PerspectiveBarContributionItem.java:93) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) org.eclipse.equinox.launcher.Main.main(Main.java:1386) {code}
Story points: 3