Tested on real devices. Appearing in prod (I was dumb enough to ship the build while only having QA'd it on iOS, rollback is already inflight). Does not appear to be occurring on iOS.
Error log:
E/AndroidRuntime(32150): FATAL EXCEPTION: main
E/AndroidRuntime(32150): Process: com.dribble_game_mobile, PID: 32150
E/AndroidRuntime(32150): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.util.UUID.toString()' on a null object reference
E/AndroidRuntime(32150): at com.posthog.PostHog.buildProperties(PostHog.kt:256)
E/AndroidRuntime(32150): at com.posthog.PostHog.capture(PostHog.kt:344)
E/AndroidRuntime(32150): at com.posthog.PostHog$Companion.capture(PostHog.kt:743)
E/AndroidRuntime(32150): at com.posthog.PostHogInterface$DefaultImpls.capture$default(PostHogInterface.kt:27)
E/AndroidRuntime(32150): at com.posthog.android.internal.PostHogLifecycleObserverIntegration.onStart(PostHogLifecycleObserverIntegration.kt:57)
E/AndroidRuntime(32150): at androidx.lifecycle.DefaultLifecycleObserverAdapter.onStateChanged(DefaultLifecycleObserverAdapter.kt:25)
E/AndroidRuntime(32150): at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:314)
E/AndroidRuntime(32150): at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.kt:251)
E/AndroidRuntime(32150): at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:287)
E/AndroidRuntime(32150): at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.kt:136)
E/AndroidRuntime(32150): at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.kt:119)
E/AndroidRuntime(32150): at androidx.lifecycle.ProcessLifecycleOwner.activityStarted$lifecycle_process_release(ProcessLifecycleOwner.kt:97)
E/AndroidRuntime(32150): at androidx.lifecycle.ProcessLifecycleOwner$attach$1$onActivityPreCreated$1.onActivityPostStarted(ProcessLifecycleOwner.kt:160)
E/AndroidRuntime(32150): at android.app.Activity.dispatchActivityPostStarted(Activity.java:1499)
E/AndroidRuntime(32150): at android.app.Activity.performStart(Activity.java:9032)
E/AndroidRuntime(32150): at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4198)
E/AndroidRuntime(32150): at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:225)
E/AndroidRuntime(32150): at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:205)
E/AndroidRuntime(32150): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:177)
E/AndroidRuntime(32150): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98)
E/AndroidRuntime(32150): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
E/AndroidRuntime(32150): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(32150): at android.os.Looper.loopOnce(Looper.java:230)
E/AndroidRuntime(32150): at android.os.Looper.loop(Looper.java:319)
E/AndroidRuntime(32150): at android.app.ActivityThread.main(ActivityThread.java:8913)
E/AndroidRuntime(32150): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32150): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
E/AndroidRuntime(32150): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Version
4.1.0
Steps to Reproduce
flutter pub add posthog_flutter
Expected Result
App does not crash
Actual Result
App crashes and exits on launch.
Tested on real devices. Appearing in prod (I was dumb enough to ship the build while only having QA'd it on iOS, rollback is already inflight). Does not appear to be occurring on iOS.
Error log: