Closed Bug 1373873 Opened 7 years ago Closed 7 years ago

Crash in java.lang.NullPointerException: Attempt to invoke interface method ''boolean android.database.Cursor.moveToFirst()'' on a null object reference at org.mozilla.gecko.promotion.AddToHomeScreenPromotion.getHistoryForURL(AddToHomeScreenPromotion.j...

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
critical

Tracking

(firefox54 unaffected, firefox55 fixed, firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox54 --- unaffected
firefox55 --- fixed
firefox56 --- fixed

People

(Reporter: Grisha, Assigned: Grisha)

References

Details

(Keywords: crash, Whiteboard: [LP_M1])

Crash Data

Attachments

(3 files)

We seem to be crashing on startup while trying to track some history-related MMA event. Specifically, the code is trying to fetch history item from the database for the current url, assumes it will never get a null cursor, and crashes when said cursor _is_ null.
Blocks: 1361664
Assignee: nobody → gkruglov
Status: NEW → ASSIGNED
Comment on attachment 8878734 [details]
Bug 1373873 - Guard against a nullable cursor

https://reviewboard.mozilla.org/r/150060/#review154742
Attachment #8878734 - Flags: review?(cnevinchen) → review+
Comment on attachment 8878735 [details]
Bug 1373873 - Post: remove unused code

https://reviewboard.mozilla.org/r/150062/#review154744
Attachment #8878735 - Flags: review?(cnevinchen) → review+
Thanks for the help!
Pushed by gkruglov@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a3738e2de59
Guard against a nullable cursor r=nechen
https://hg.mozilla.org/integration/autoland/rev/cd9b265eb8f6
Post: remove unused code r=nechen
NI myself to request an uplift for this to 55.
Flags: needinfo?(gkruglov)
https://hg.mozilla.org/mozilla-central/rev/7a3738e2de59
https://hg.mozilla.org/mozilla-central/rev/cd9b265eb8f6
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1361664

[User impact if declined]: Rare startup crash

[Is this code covered by automated tests?]: no

[Has the fix been verified in Nightly?]: it's on nightly now, waiting a drop in crash-stats reports.

[Needs manual test from QE? If yes, steps to reproduce]: no

[List of other uplifts needed for the feature/fix]: n/a

[Is the change risky?]: no

[Why is the change risky/not risky?]: patch is a simple null check with some annotations added

[String changes made/needed]: n/a
Flags: needinfo?(gkruglov)
Attachment #8879274 - Flags: approval-mozilla-beta?
Comment on attachment 8879274 [details] [diff] [review]
startup-crash-mma-beta.patch

fix a fennec startup crash, beta55+
Attachment #8879274 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Whiteboard: [LP_M2]
Whiteboard: [LP_M2] → [LP_M1]
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: