Project: titanium
Issue TIMOB-19325: Android: activity indicator causing crash if exiting app right after launch
Use the test case [here|https://jira.appcelerator.org/browse/TIMOB-19257]. Right after launch (during splash), click "back" to exit the app. Repeat several times and sometimes you'll see the crash. {code} [ERROR] : TiApplication: (main) [1,485] Sending event: exception on thread: main msg:java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.invalidate()' on a null object reference; Titanium 4.1.0,2015/07/06 11:15,d57aa7d [ERROR] : TiApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.invalidate()' on a null object reference [ERROR] : TiApplication: ti.modules.titanium.ui.widget.TiUIActivityIndicator.processProperties(TiUIActivityIndicator.java:98) [ERROR] : TiApplication: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:501) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:470) [ERROR] : TiApplication: ti.modules.titanium.ui.ActivityIndicatorProxy.handleShow(ActivityIndicatorProxy.java:82) [ERROR] : TiApplication: org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:254) [ERROR] : TiApplication: ti.modules.titanium.ui.ActivityIndicatorProxy.handleMessage(ActivityIndicatorProxy.java:67) [ERROR] : TiApplication: android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiApplication: android.os.Looper.loop(Looper.java:155) [ERROR] : TiApplication: android.app.ActivityThread.main(ActivityThread.java:5696) [ERROR] : TiApplication: java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823) [ERROR] : AndroidRuntime: FATAL EXCEPTION: main [ERROR] : AndroidRuntime: Process: cc.forerunner.test, PID: 11388 [ERROR] : AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.invalidate()' on a null object reference [ERROR] : AndroidRuntime: ti.modules.titanium.ui.widget.TiUIActivityIndicator.processProperties(TiUIActivityIndicator.java:98) [ERROR] : AndroidRuntime: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209) [ERROR] : AndroidRuntime: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:501) [ERROR] : AndroidRuntime: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [ERROR] : AndroidRuntime: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:470) [ERROR] : AndroidRuntime: ti.modules.titanium.ui.ActivityIndicatorProxy.handleShow(ActivityIndicatorProxy.java:82) [ERROR] : AndroidRuntime: org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:254) [ERROR] : AndroidRuntime: ti.modules.titanium.ui.ActivityIndicatorProxy.handleMessage(ActivityIndicatorProxy.java:67) [ERROR] : AndroidRuntime: android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : AndroidRuntime: android.os.Looper.loop(Looper.java:155) [ERROR] : AndroidRuntime: android.app.ActivityThread.main(ActivityThread.java:5696) [ERROR] : AndroidRuntime: java.lang.reflect.Method.invoke(Native Method) [ERROR] : AndroidRuntime: [ERROR] : AndroidRuntime: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028) [ERROR] : AndroidRuntime: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823) {code}
Story points: 3