Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14179

openPreferences rise error when a service is running

    Details

      Description

      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:

      1. Open the app
      2. Start the service (Platform/Android services)
      3. Close the app (back key)
      4. Re open the app
      5. 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:

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                clathrop Carter Lathrop
                Reviewer:
                Ping Wang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16707
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration