-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference #1096
Comments
Hi @shijianan201, can you provide any reproducible steps? |
It only occurs in release mode, I cannot reproduce from debug. but It appears when I upgrade sdk from 5.0.0 to 5.1.0. |
@shijianan201 got it, I'll escalate to engineering to take a closer look. If you have any other information from Crashlytics please share to help with the debugging process. Thanks |
@shijianan201 engineering is unable to reproduce the crash. Do you have any more information you can share so we can take a closer look? |
I forked this project modify the code like below. GoogleMobileAdsPlugin.java
Now firebase crashlytics record
Then I read the setImmersiveMode code in dart, I found no try catch block use in this function. so I think it because sometimes adId is null when setImmersiveMode function called from dart to java, then java throws exception,but dart doesn't catch it. And I think not only setImmersiveMode function produce this problem, all function in GoogleMobileAdsPlugin'onMethodCall can produce. |
Thank you, @shijianan201. I see the issue now, it definitely needs some more handling on the dart layer. Will work on this for the next release. |
Plugin Version
ad sdk: 5.1.0 flutter:3.19.1
Steps to Reproduce
firebase crashlytics record some crash throws by GoogleMobileAdsPlugin.java.
Logs
The text was updated successfully, but these errors were encountered: