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

Changing SDK version throws null pointer exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 2.0
    • Fix Version/s: Titanium Studio 1.0.4
    • Component/s: Editor
    • Labels:
      None
    • Environment:

      Nightly build - 1.1.0.201107182056

      Description

      STEPS TO REPRODUCE:

      Change SDK version in the tiapp editor and save to see the error.

      Here is the log file from it:

      !ENTRY org.eclipse.ui 2 0 2011-07-19 12:11:08.811
      !MESSAGE Save Failed
      !STACK 0
      java.lang.NullPointerException
      at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:313)
      at org.eclipse.core.runtime.FileLocator.resolve(FileLocator.java:227)
      at com.appcelerator.titanium.mobile.ContentAssistMetadataUtils.getProjectMetadataBuildPath(ContentAssistMetadataUtils.java:148)
      at com.appcelerator.titanium.mobile.ContentAssistMetadataUtils.importContentAssistMetadata(ContentAssistMetadataUtils.java:202)
      at com.appcelerator.titanium.ui.ide.tiappEditor.TiAppEditor.doSave(TiAppEditor.java:200)
      at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:151)
      at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:277)
      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
      at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606)
      at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:285)
      at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:264)
      at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:156)
      at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1369)
      at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3334)
      at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3347)
      at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
      at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1034)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3782)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1398)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1412)
      at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1408)
      at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1433)
      at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:958)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:5075)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
      at org.eclipse.swt.widgets.Widget.superKeyDown(Widget.java:1824)
      at org.eclipse.swt.widgets.Widget.keyDown(Widget.java:1013)
      at org.eclipse.swt.widgets.Control.keyDown(Control.java:2122)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
      at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1959)
      at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2025)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:5047)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4589)
      at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4666)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:115)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3281)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      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:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

        Attachments

          Activity

            People

            • Assignee:
              nhuynh Natalie Huynh
              Reporter:
              rblalock Rick Blalock (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: