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.

  • The openPreferences rise an error when a service is running and the app was closed and reopened. That is happening in my Alloy app, but can be duplicated on the KitchenSink app. *Steps to duplicate the error on Kitchen Sink*: # Open the app # Start the service (Platform/Android services) # Close the app (back key) # Re open the app # Try to open preferences (Base UI/Preferences) *A red "Runtime Error" window will popup saying*: *Location*: [14,23] ui/handheld/android/baseui/preferences.js *Message*: Uncaught Error: Java Exception occurred *Source*: Titanium.UI.Android.openPreferences(); *The console will show this*: {code} W/System.err( 723): java.lang.NullPointerException W/System.err( 723): at android.content.ComponentName.<init>(ComponentName.java:75) W/System.err( 723): at android.content.Intent.<init>(Intent.java:3004) W/System.err( 723): at ti.modules.titanium.ui.android.AndroidModule.openPreferences(AndroidModule.java:101) W/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) W/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64) W/System.err( 723): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:832) W/System.err( 723): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1056) W/System.err( 723): at org.appcelerator.titanium.proxy.MenuItemProxy.handleMessage(MenuItemProxy.java:170) W/System.err( 723): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 723): at android.os.Looper.loop(Looper.java:137) W/System.err( 723): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) {code}
    via by Carter Lathrop,
  • The openPreferences rise an error when a service is running and the app was closed and reopened. That is happening in my Alloy app, but can be duplicated on the KitchenSink app. *Steps to duplicate the error on Kitchen Sink*: # Open the app # Start the service (Platform/Android services) # Close the app (back key) # Re open the app # Try to open preferences (Base UI/Preferences) *A red "Runtime Error" window will popup saying*: *Location*: [14,23] ui/handheld/android/baseui/preferences.js *Message*: Uncaught Error: Java Exception occurred *Source*: Titanium.UI.Android.openPreferences(); *The console will show this*: {code} W/System.err( 723): java.lang.NullPointerException W/System.err( 723): at android.content.ComponentName.<init>(ComponentName.java:75) W/System.err( 723): at android.content.Intent.<init>(Intent.java:3004) W/System.err( 723): at ti.modules.titanium.ui.android.AndroidModule.openPreferences(AndroidModule.java:101) W/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) W/System.err( 723): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64) W/System.err( 723): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:832) W/System.err( 723): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1056) W/System.err( 723): at org.appcelerator.titanium.proxy.MenuItemProxy.handleMessage(MenuItemProxy.java:170) W/System.err( 723): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 723): at android.os.Looper.loop(Looper.java:137) W/System.err( 723): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) {code}
    via by Carter Lathrop,
  • 3.20.02 crashes
    via GitHub by ravelab
    ,
    • java.lang.NullPointerException at android.content.ComponentName.<init>(ComponentName.java:75) at android.content.Intent.<init>(Intent.java:3004) at ti.modules.titanium.ui.android.AndroidModule.openPreferences(AndroidModule.java:101) at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64) at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:832) at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1056) at org.appcelerator.titanium.proxy.MenuItemProxy.handleMessage(MenuItemProxy.java:170) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:137) at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    10 more bugmates