Project: appceleratorstudio
Issue TISTUD-6183: Intermittent NPE while opening TiApp editor
At times when the state of the project or services is corrupted, TiApp fails to open and throws NPE : java.lang.NullPointerException com.appcelerator.titanium360.internal.core.ServiceInstance.getState(ServiceInstance.java:49) com.appcelerator.titanium360.ui.tiapp.Titanium360TiappContributor.create360ServiceList(Titanium360TiappContributor.java:633) com.appcelerator.titanium360.ui.tiapp.Titanium360TiappContributor.createSectionContents(Titanium360TiappContributor.java:538) com.appcelerator.titanium360.ui.tiapp.Titanium360TiappContributor.createControls(Titanium360TiappContributor.java:393) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection.createControls(TiAppCloudSection.java:68) com.appcelerator.titanium.ui.ide.tiappEditor.AbstractTiAppSection.initialize(AbstractTiAppSection.java:71) com.appcelerator.titanium.ui.ide.tiappEditor.AbstractTiAppSection.(AbstractTiAppSection.java:55) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppCloudSection.(TiAppCloudSection.java:47) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppFormPage.createFormContent(TiAppFormPage.java:123) org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150) org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:471) org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1083) org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:603)
Story points: 3