java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Dustin Hyde,
  • 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.
    via by Dustin Hyde,
    • 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)
    No Bugmate found.