Closed adeekshith closed 3 years ago
Error when clicked on Watomatic generate notification on real device Samsung S10+:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.parishod.watomatic, PID: 1878
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.parishod.watomatic/com.parishod.watomatic.activity.notification.NotificationIntentActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.addFlags(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3792)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.addFlags(int)' on a null object reference
at com.parishod.watomatic.activity.notification.NotificationIntentActivity.launchApp(NotificationIntentActivity.java:36)
at com.parishod.watomatic.activity.notification.NotificationIntentActivity.onCreate(NotificationIntentActivity.java:26)
at android.app.Activity.performCreate(Activity.java:8198)
at android.app.Activity.performCreate(Activity.java:8182)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)
Edit: Fixed by 297f2bd
fix #222