cordova-plugin-firebasex icon indicating copy to clipboard operation
cordova-plugin-firebasex copied to clipboard

Crash in "handleExceptionWithContext" method (rare occurrence)

Open TheNotorius0 opened this issue 1 year ago • 0 comments

Bug report

CHECKLIST

  • [x] I have reproduced the issue using the example project or provided the necessary information to reproduce the 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

firebasex-android-crash firebasex-android-crash-2 FureBasePluginJava-error

Environment information

  • Cordova CLI version
  • Cordova platform version
    • cordova platform ls android 12.0.1
  • Plugins & versions installed in project (including this plugin)
    • cordova plugin ls cordova-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.

TheNotorius0 avatar Mar 07 '24 13:03 TheNotorius0