flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

NullPointerException: Attempt to invoke virtual method 'FlurryMessage.getNotificationId()' on a null object reference #28

Closed RodolfoGS closed 3 years ago

RodolfoGS commented 3 years ago

Describe the bug I have this crash on Crashlytics (Android), I don't know how to reproduce it.

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'int com.flurry.android.marketing.messaging.notification.FlurryMessage.getNotificationId()' on a null object reference

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of SDKs you are using. If you are not sure about React Native version, you can run react-native --version under your project.

To Reproduce I have this crash on Crashlytics (Android), I don't know how to reproduce it. Sorry.

Screenshots From Crashlytics

Additional context Are you using Flurry Push/Messaging? No (iOS) Are you using CocoaPods for React Native integration? Yes

Stacktrace

Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.flurry.android.marketing.messaging.notification.NotificationCancelledReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.flurry.android.marketing.messaging.notification.FlurryMessage.getNotificationId()' on a null object reference
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:2735)
       at android.app.ActivityThread.-wrap14(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5421)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int com.flurry.android.marketing.messaging.notification.FlurryMessage.getNotificationId()' on a null object reference
       at com.flurry.android.marketing.messaging.notification.NotificationCancelledReceiver.onReceive(SourceFile:24)
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:2728)
       at android.app.ActivityThread.-wrap14(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5421)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Device

poting-oath commented 3 years ago

Fix will be available in the next Flurry SDK/Plugin release. I.e., post Flurry Android SDK 12.9.0.

poting-oath commented 3 years ago

@RodolfoGS Fix has been released in version 6.3.0. Thanks!