Project: appceleratorstudio
Issue TISTUD-5924: NPE while opening TiApp during Studio startup on Windows
If TiApp is opened in the previous session, then Studio tries to re-open the TiApp and at some instances, it fails to open the TiApp editor with the below failure : java.lang.NullPointerException com.aptana.theme.ThemePlugin.applyToAllEditors(ThemePlugin.java:346) com.aptana.theme.internal.ThemeManager.setCurrentTheme(ThemeManager.java:219) com.aptana.theme.internal.ThemeManager.getCurrentTheme(ThemeManager.java:194) com.aptana.editor.common.CommonSourceViewerConfiguration.getCurrentTheme(CommonSourceViewerConfiguration.java:612) com.aptana.editor.common.CommonSourceViewerConfiguration.getThemeBackground(CommonSourceViewerConfiguration.java:462) com.aptana.editor.common.CommonSourceViewerConfiguration.getContentAssistant(CommonSourceViewerConfiguration.java:200) org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:464) com.aptana.editor.common.viewer.CommonProjectionViewer.configure(CommonProjectionViewer.java:168) org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3424) org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447) com.aptana.editor.common.internal.AbstractFoldingEditor.createPartControl(AbstractFoldingEditor.java:123) com.aptana.editor.common.AbstractThemeableEditor.createPartControl(AbstractThemeableEditor.java:327) com.aptana.editor.xml.XMLEditor.createPartControl(XMLEditor.java:78) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppXMLSourcePage.createPartControl(TiAppXMLSourcePage.java:129) org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:243) org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:325)
Story points: 3