cordova-plugin-firebasex
cordova-plugin-firebasex copied to clipboard
Crash in "handleExceptionWithContext" method (rare occurrence)
Bug report
CHECKLIST
-
[x] I have read the issue reporting guidelines
-
[x] I confirm this is a suspected bug or issue that will affect other users
- [x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
- [x] I have read the documentation thoroughly and it does not help solve my issue.
- [x] I have checked that no similar issues (open or closed) already exist.
Current behavior:
Sometimes the handleExceptionWithContext method on Firebaseplugin.java (line 3551) crashes because the context parameter is null.
Note: this is not a "not irreversible" error in crashalytics, it's actually a real crash.
Expected behavior:
It shouldn't crash, maybe placing a if (context != null) or a try {} catch{} would be enough.
Screenshots
Environment information
- Cordova CLI version
cordova -v12.0.0 ([email protected])
- Cordova platform version
cordova platform lsandroid 12.0.1
- Plugins & versions installed in project (including this plugin)
cordova plugin lscordova-plugin-firebasex 16.4.0 "Google Firebase Plugin"
Runtime issue
-
Device details (that received the crash)
- Samsung Galaxy S10+ (Android 12)
- Samsung Galaxy S20 FE 5G (Android 13)
- Samsung Galaxy Galaxy A02s (Android 13)
- OnePlus Nord CE 3 Lite 5G (Android 13)
- Redmi Note 9 Pro (Android 12)
- Nokia C22 (Android 12)
Other information:
The method handleExceptionWithContext is on FirebasePlugin.java on line 3551.