java.lang.NullPointerException

Appcelerator JIRA | Carter Lathrop | 3 years ago
  1. 0

    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}

    Appcelerator JIRA | 3 years ago | Carter Lathrop
    java.lang.NullPointerException
  2. 0

    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}

    Appcelerator JIRA | 3 years ago | Carter Lathrop
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. balajivaishnav 2 times, last 9 months ago
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at android.content.ComponentName.<init>()
  2. Android Platform
    Intent.<init>
    1. android.content.ComponentName.<init>(ComponentName.java:75)
    2. android.content.Intent.<init>(Intent.java:3004)
    2 frames
  3. ti.modules.titanium
    AndroidModule.openPreferences
    1. ti.modules.titanium.ui.android.AndroidModule.openPreferences(AndroidModule.java:101)
    1 frame
  4. org.appcelerator.kroll
    KrollProxy.handleMessage
    1. org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
    2. org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64)
    3. org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:832)
    4. org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1056)
    4 frames
  5. org.appcelerator.titanium
    MenuItemProxy.handleMessage
    1. org.appcelerator.titanium.proxy.MenuItemProxy.handleMessage(MenuItemProxy.java:170)
    1 frame
  6. Android Platform
    Looper.loop
    1. android.os.Handler.dispatchMessage(Handler.java:95)
    2. android.os.Looper.loop(Looper.java:137)
    2 frames
  7. org.appcelerator.kroll
    KrollRuntime$KrollRuntimeThread.run
    1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
    1 frame