Closed Bug 1839160 Opened 3 years ago Closed 2 years ago

Crash - NullPointerException in BookmarkFragment

Categories

(Firefox for Android :: Bookmarks, defect, P3)

Firefox 116
All
Android
defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox123 --- wontfix
firefox124 --- wontfix
firefox125 --- fixed

People

(Reporter: rsainani, Assigned: mcarare)

References

Details

(Keywords: crash, Whiteboard: [fxdroid][group1])

Crash Data

Attachments

(1 file)

This crash has started occurring in 116 nightly.

Stack trace:

java.lang.NullPointerException: null
    at org.mozilla.fenix.library.bookmarks.BookmarkFragment.refreshBookmarks(BookmarkFragment.kt:103)
    at org.mozilla.fenix.library.bookmarks.BookmarkFragment$refreshBookmarks$1.invokeSuspend(BookmarkFragment.kt:14)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:112)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6669)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Severity: -- → S2
Keywords: crash
See Also: → 1849015
Priority: -- → P3
See Also: → 1861744
Assignee: nobody → mcarare
Status: NEW → ASSIGNED
Whiteboard: [fxdroid][group1]

I managed to reproduce this crash (same stack trace) by rapidly clicking the bookmarks menu and opening 2 menus. Selecting one action ( delete) from the first and then using the second menu choosing a new option crashes the app.

This issue might come up in other screen that use the same menu, so the fix will involve preventing opening a menu twice.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.fenix.library.bookmarks.BookmarkFragment.refreshBookmarks(BookmarkFragment.kt) ]

The patch landed in nightly and beta is affected.
:mcarare, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox124 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mcarare)

Relatively low volume, edge case STR. So holding off on an uplift.

Flags: needinfo?(mcarare)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: