Closed Bug 1289892 Opened 9 years ago Closed 9 years ago

Crash in java.lang.NullPointerException: Attempt to get length of null array at org.mozilla.gecko.telemetry.stores.TelemetryJSONFilePingStore.maybePrunePings(TelemetryJSONFilePingStore.java)

Categories

(Firefox for Android Graveyard :: General, defect)

Unspecified
Android
defect
Not set
critical

Tracking

(firefox51 fixed)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox51 --- fixed

People

(Reporter: jchen, Assigned: Tobbi)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file, 1 obsolete file)

This bug was filed from the Socorro interface and is report bp-166863cb-a2f1-4756-a351-0dbb32160727. ============================================================= Low volume crash first seen in the 20160719030224 nightly. The cause is storeDir.listFiles returning null in TelemetryJSONFilePingStore.maybePrunePings. This could indicate an IO error or that the directory does not exist. In either case, I think we should simply return here, so the fix is a simple null-check.
Related: bug 1289006 Fix should be the same. Taking this.
Assignee: nobody → tobbi.bugs
Status: NEW → ASSIGNED
Attached patch fix (obsolete) — Splinter Review
Attachment #8775825 - Attachment is obsolete: true
Attached patch patchSplinter Review
Who is the best person to request review for this?
Attachment #8775828 - Flags: review?(gkruglov)
Comment on attachment 8775828 [details] [diff] [review] patch Review of attachment 8775828 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8775828 - Flags: review?(gkruglov) → review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/fx-team/rev/f3f6e368b95e Return gracefully if listFiles returns null. r=gkruglov
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
I've also seen this as an OOM crash.
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: