java.lang.NullPointerException

Appcelerator JIRA | Dustin Hyde | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Preferences: cannot set Titanium SDK location if not installed, or save any titanium preferences changes. This is not a regression. This is a major usability issue. Log: {code} !ENTRY org.eclipse.ui 4 4 2012-10-24 15:15:23.753 !MESSAGE An internal error has occurred. !STACK 0 java.lang.NullPointerException at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.getAVDs(AndroidSDKLocator.java:184) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.initialize(AndroidSDKLocator.java:134) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.<init>(AndroidSDKLocator.java:79) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.updateAvailableAndroidSDKCombo(TitaniumPreferencePage.java:639) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.access$0(TitaniumPreferencePage.java:637) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage$AndroidSDKFieldEditor.isValid(TitaniumPreferencePage.java:880) at com.appcelerator.titanium.ui.preferences.MobileSDKFieldEditor.doCheckState(MobileSDKFieldEditor.java:79) at org.eclipse.jface.preference.StringFieldEditor.checkState(StringFieldEditor.java:193) at org.eclipse.jface.preference.StringFieldEditor.refreshValidState(StringFieldEditor.java:409) at com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor.access$0(AsyncMobileSDKFieldEditor.java:1) at com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor$1.runInUIThread(AsyncMobileSDKFieldEditor.java:62) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.runCommand(CocoaUIEnhancer.java:393) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:535) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:520) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4879) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5226) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3607) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) 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:344) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code} Steps to Reproduce: 1. Uninstall main Titanium folder containing SDKs and modules. 2. Run Titanium Studio. 3. Cancel Titanium SDK installation. 4. Go to Preferences > Titanium Studio > Titanium. Actual Result: Preferences menu locked, cannot enter Titanium SDK install location. Expected Result: User can use preferences menu without it being locked, and user can change Titanium SDK location.

    Appcelerator JIRA | 5 years ago | Dustin Hyde
    java.lang.NullPointerException
  2. 0

    Preferences: cannot set Titanium SDK location if not installed, or save any titanium preferences changes. This is not a regression. This is a major usability issue. Log: {code} !ENTRY org.eclipse.ui 4 4 2012-10-24 15:15:23.753 !MESSAGE An internal error has occurred. !STACK 0 java.lang.NullPointerException at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.getAVDs(AndroidSDKLocator.java:184) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.initialize(AndroidSDKLocator.java:134) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.<init>(AndroidSDKLocator.java:79) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.updateAvailableAndroidSDKCombo(TitaniumPreferencePage.java:639) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.access$0(TitaniumPreferencePage.java:637) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage$AndroidSDKFieldEditor.isValid(TitaniumPreferencePage.java:880) at com.appcelerator.titanium.ui.preferences.MobileSDKFieldEditor.doCheckState(MobileSDKFieldEditor.java:79) at org.eclipse.jface.preference.StringFieldEditor.checkState(StringFieldEditor.java:193) at org.eclipse.jface.preference.StringFieldEditor.refreshValidState(StringFieldEditor.java:409) at com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor.access$0(AsyncMobileSDKFieldEditor.java:1) at com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor$1.runInUIThread(AsyncMobileSDKFieldEditor.java:62) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.runCommand(CocoaUIEnhancer.java:393) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:535) at org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:520) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4879) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5226) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3607) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) 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:344) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code} Steps to Reproduce: 1. Uninstall main Titanium folder containing SDKs and modules. 2. Run Titanium Studio. 3. Cancel Titanium SDK installation. 4. Go to Preferences > Titanium Studio > Titanium. Actual Result: Preferences menu locked, cannot enter Titanium SDK install location. Expected Result: User can use preferences menu without it being locked, and user can change Titanium SDK location.

    Appcelerator JIRA | 5 years ago | Dustin Hyde
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.getAVDs()
    2. com.appcelerator.titanium
      MobileSDKFieldEditor.doCheckState
      1. com.appcelerator.titanium.mobile.android.AndroidSDKLocator.getAVDs(AndroidSDKLocator.java:184)
      2. com.appcelerator.titanium.mobile.android.AndroidSDKLocator.initialize(AndroidSDKLocator.java:134)
      3. com.appcelerator.titanium.mobile.android.AndroidSDKLocator.<init>(AndroidSDKLocator.java:79)
      4. com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.updateAvailableAndroidSDKCombo(TitaniumPreferencePage.java:639)
      5. com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.access$0(TitaniumPreferencePage.java:637)
      6. com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage$AndroidSDKFieldEditor.isValid(TitaniumPreferencePage.java:880)
      7. com.appcelerator.titanium.ui.preferences.MobileSDKFieldEditor.doCheckState(MobileSDKFieldEditor.java:79)
      7 frames
    3. JFace
      StringFieldEditor.refreshValidState
      1. org.eclipse.jface.preference.StringFieldEditor.checkState(StringFieldEditor.java:193)
      2. org.eclipse.jface.preference.StringFieldEditor.refreshValidState(StringFieldEditor.java:409)
      2 frames
    4. com.appcelerator.titanium
      AsyncMobileSDKFieldEditor$1.runInUIThread
      1. com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor.access$0(AsyncMobileSDKFieldEditor.java:1)
      2. com.appcelerator.titanium.ui.preferences.AsyncMobileSDKFieldEditor$1.runInUIThread(AsyncMobileSDKFieldEditor.java:62)
      2 frames
    5. Workbench
      UIJob$1.run
      1. org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
      1 frame
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
      4 frames
    7. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      2. org.eclipse.jface.window.Window.open(Window.java:801)
      2 frames
    8. Workbench
      HandlerProxy.execute
      1. org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
      2. org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54)
      3. org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
      3 frames
    9. Commands
      Command.executeWithChecks
      1. org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      1 frame
    10. Workbench
      HandlerService.executeCommand
      1. org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178)
      1 frame
    11. org.eclipse.ui
      CocoaUIEnhancer.actionProc
      1. org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.runCommand(CocoaUIEnhancer.java:393)
      2. org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:535)
      3. org.eclipse.ui.internal.cocoa.CocoaUIEnhancer.actionProc(CocoaUIEnhancer.java:520)
      3 frames
    12. org.eclipse.swt
      OS.objc_msgSendSuper
      1. org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      1 frame
    13. RWT
      Display.applicationProc
      1. org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4879)
      2. org.eclipse.swt.widgets.Display.applicationProc(Display.java:5226)
      2 frames
    14. org.eclipse.swt
      NSApplication.nextEventMatchingMask
      1. org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      2. org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94)
      2 frames
    15. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3607)
      1 frame
    16. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      4 frames
    17. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    18. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      1 frame
    19. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    20. com.appcelerator.titanium
      IDEApplication.start
      1. com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
      1 frame
    21. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    22. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    23. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    24. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      3 frames