dpa99c/cordova-plugin-firebasex

Crash in "handleExceptionWithContext" method (rare occurrence)

Opened this issue · 0 comments

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • 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 -v 12.0.0 (cordova-lib@12.0.1)
  • 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.