Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-5924

NPE while opening TiApp during Studio startup on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.0
    • Fix Version/s: 2013 Sprint 26, Release 3.2.0
    • Component/s: Tiapp
    • Labels:
      None
    • Story Points:
      3

      Description

      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
      at com.aptana.theme.ThemePlugin.applyToAllEditors(ThemePlugin.java:346)
      at com.aptana.theme.internal.ThemeManager.setCurrentTheme(ThemeManager.java:219)
      at com.aptana.theme.internal.ThemeManager.getCurrentTheme(ThemeManager.java:194)
      at com.aptana.editor.common.CommonSourceViewerConfiguration.getCurrentTheme(CommonSourceViewerConfiguration.java:612)
      at com.aptana.editor.common.CommonSourceViewerConfiguration.getThemeBackground(CommonSourceViewerConfiguration.java:462)
      at com.aptana.editor.common.CommonSourceViewerConfiguration.getContentAssistant(CommonSourceViewerConfiguration.java:200)
      at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:464)
      at com.aptana.editor.common.viewer.CommonProjectionViewer.configure(CommonProjectionViewer.java:168)
      at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3424)
      at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
      at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447)
      at com.aptana.editor.common.internal.AbstractFoldingEditor.createPartControl(AbstractFoldingEditor.java:123)
      at com.aptana.editor.common.AbstractThemeableEditor.createPartControl(AbstractThemeableEditor.java:327)
      at com.aptana.editor.xml.XMLEditor.createPartControl(XMLEditor.java:78)
      at com.appcelerator.titanium.ui.ide.tiappEditor.TiAppXMLSourcePage.createPartControl(TiAppXMLSourcePage.java:129)
      at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:243)
      at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:325)

        Attachments

          Activity

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              pinnamuri Praveen Innamuri (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: