When I first deploy our app to a device I get a NullPointerException. This only happens on the first install. If I background/restart the app there are no issues.
I thought I may have been initializing too early, but I have this at the very end of the onCreate of the class in which we are extending the Application class.
Maybe the TLC community can shed some light. Below is the both the Logcat and Tealium verbose logs.
Logcat:
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): java.lang.NullPointerException
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): com.tealium.library.l$b.a(SourceFile:593)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): com.tealium.library.l.run(SourceFile:259)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): android.os.Handler.handleCallback(Handler.java:733)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): android.os.Handler.dispatchMessage(Handler.java:95)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): android.os.Looper.loop(Looper.java:157)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): android.app.ActivityThread.main(ActivityThread.java:5293)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): java.lang.reflect.Method.invokeNative(Native Method)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): java.lang.reflect.Method.invoke(Method.java:515)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): dalvik.system.NativeStart.main(Native Method)
05-20 17:11:26.045: E/+ ____ ApplicationSession$1(319): Caused By:java.lang.NullPointerException com.tealium.library.l$b.a(SourceFile:593)com.tealium.library.l.run(SourceFile:259)android.os.Handler.handleCallback(Handler.java:733)android.os.Handler.dispatchMessage(Handler.java:95)android.os.Looper.loop(Looper.java:157)android.app.ActivityThread.main(ActivityThread.java:5293)java.lang.reflect.Method.invokeNative(Native Method)java.lang.reflect.Method.invoke(Method.java:515)com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)dalvik.system.NativeStart.main(Native Method)
Tealium Verbose Log:
05-20 17:11:25.805: V/Tealium(319): link : {
05-20 17:11:25.805: V/Tealium(319): "exception_trace": "com.tealium.library.l$b.a(SourceFile:593)\r\ncom.tealium.library.l.run(SourceFile:259)\r\nandroid.os.Handler.handleCallback(Handler.java:733)\r\nandroid.os.Handler.dispatchMessage(Handler.java:95)\r\nandroid.os.Looper.loop(Looper.java:157)\r\nandroid.app.ActivityThread.main(ActivityThread.java:5293)\r\njava.lang.reflect.Method.invokeNative(Native Method)\r\njava.lang.reflect.Method.invoke(Method.java:515)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)\r\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)\r\ndalvik.system.NativeStart.main(Native Method)\r\n",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_firstlaunchdate_MMDDYYYY": "05\/20\/2014",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_firstlaunchdate": "2014-05-20T17:11:25Z",
05-20 17:11:25.805: V/Tealium(319): "app_version": "7.1",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_dayssincelastwake": "0",
05-20 17:11:25.805: V/Tealium(319): "object_class": "NullPointerException",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_dayssincelaunch": "0",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_type": "crash",
05-20 17:11:25.805: V/Tealium(319): "app_name": â ____â ,
05-20 17:11:25.805: V/Tealium(319): "autotracked": "true",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_launchcount": "1",
05-20 17:11:25.805: V/Tealium(319): "connection_type": "WIFI",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_totalsleepcount": "0",
05-20 17:11:25.805: V/Tealium(319): "timestamp": "2014-05-20T22:11:25Z",
05-20 17:11:25.805: V/Tealium(319): "timestamp_local": "2014-05-20T17:11:25",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_terminatecount": "0",
05-20 17:11:25.805: V/Tealium(319): "timestamp_offset": "-5",
05-20 17:11:25.805: V/Tealium(319): "carrier": "Verizon Wireless",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_totalwakecount": "1",
05-20 17:11:25.805: V/Tealium(319): "carrier_mnc": "480",
05-20 17:11:25.805: V/Tealium(319): "exception_totalcrashcount": "0",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_totallaunchcount": "1",
05-20 17:11:25.805: V/Tealium(319): "orientation": "Portrait",
05-20 17:11:25.805: V/Tealium(319): "platform": "android",
05-20 17:11:25.805: V/Tealium(319): "device_resolution": "1080x1920",
05-20 17:11:25.805: V/Tealium(319): "carrier_iso": "us",
05-20 17:11:25.805: V/Tealium(319): "library_version": "2.1",
05-20 17:11:25.805: V/Tealium(319): "exception_name": "java.lang.NullPointerException",
05-20 17:11:25.805: V/Tealium(319): "link_id": "lifecycle",
05-20 17:11:25.805: V/Tealium(319): "os_version": "19",
05-20 17:11:25.805: V/Tealium(319): "exception_type": "uncaught",
05-20 17:11:25.805: V/Tealium(319): "pageType": "native",
05-20 17:11:25.805: V/Tealium(319): "carrier_mcc": "us",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_hourofday_local": "17",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_sleepcount": "0",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_wakecount": "1",
05-20 17:11:25.805: V/Tealium(319): "call_type": "link",
05-20 17:11:25.805: V/Tealium(319): "tealium_id": "LIFE",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_dayofweek_local": "3",
05-20 17:11:25.805: V/Tealium(319): "device": "Samsung SM-N900V",
05-20 17:11:25.805: V/Tealium(319): "app_id": â ____ 7.1â ,
05-20 17:11:25.805: V/Tealium(319): "uuid": "9dbc3f2a-84dd-43c6-becc-30b74803f6c5",
05-20 17:11:25.805: V/Tealium(319): "timestamp_unix": "1400623885",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_totalsecondsawake": "0",
05-20 17:11:25.805: V/Tealium(319): "lifecycle_totalterminatecount": "0",
05-20 17:11:25.805: V/Tealium(319): "exception_reason": null,
05-20 17:11:25.805: V/Tealium(319): "screen_title": â ____â
05-20 17:11:25.805: V/Tealium(319): }
... View more