Closed
Bug 731372
Opened 12 years ago
Closed 12 years ago
java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp$SessionSnapshotRunnable.run(GeckoApp.java:598)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(blocking-fennec1.0 +)
RESOLVED
FIXED
Firefox 13
Tracking | Status | |
---|---|---|
blocking-fennec1.0 | --- | + |
People
(Reporter: bnicholson, Assigned: bnicholson)
Details
(Keywords: crash, Whiteboard: [native-crash])
Crash Data
Attachments
(1 file, 1 obsolete file)
1.52 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
02-28 11:49:28.224 29910 29919 E AndroidRuntime: FATAL EXCEPTION: GeckoBackgroundThread 02-28 11:49:28.224 29910 29919 E AndroidRuntime: java.lang.NullPointerException 02-28 11:49:28.224 29910 29919 E AndroidRuntime: at org.mozilla.gecko.GeckoApp$SessionSnapshotRunnable.run(GeckoApp.java:598) 02-28 11:49:28.224 29910 29919 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:587) 02-28 11:49:28.224 29910 29919 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:92) 02-28 11:49:28.224 29910 29919 E AndroidRuntime: at android.os.Looper.loop(Looper.java:130) 02-28 11:49:28.224 29910 29919 E AndroidRuntime: at org.mozilla.gecko.GeckoBackgroundThread.run(GeckoBackgroundThread.java:31) 02-28 11:49:28.224 508 873 W ActivityManager: Force finishing activity org.mozilla.fennec_brian/.App STR: 1) Open Fennec. Stay at about:home 2) Click the Android home button 3) Run oom-fennec 4) Open Fennec This will often (not always) crash and close Fennec.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bnicholson
blocking-fennec1.0: --- → ?
Assignee | ||
Comment 1•12 years ago
|
||
Adds extra null checks. This particular crash was caused by mLastSnapshotUri being null, which it *always* is the first time we run the SessionSnapshotRunnable.
Attachment #601377 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 2•12 years ago
|
||
Refactored to simplify checks and remove unnecessary null checks as suggested by kats.
Attachment #601377 -
Attachment is obsolete: true
Attachment #601402 -
Flags: review?(blassey.bugs)
Attachment #601377 -
Flags: review?(blassey.bugs)
Updated•12 years ago
|
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp$SessionSnapshotRunnable.run(GeckoApp.java) ]
Keywords: crash
Whiteboard: [native-crash]
Comment 3•12 years ago
|
||
Comment on attachment 601402 [details] [diff] [review] patch v2 Review of attachment 601402 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/GeckoApp.java @@ +593,3 @@ > if (viewportJSON.equals(mLastViewport) && > + lastHistoryEntry.mTitle.equals(mLastTitle) && > + lastHistoryEntry.mUri.equals(mLastSnapshotUri)) can lastHistoryEntry, lastHistoryEntry.mTitle or lastHistoryEntry.mUri be null?
Attachment #601402 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Brad Lassey [:blassey] from comment #3) > > can lastHistoryEntry, lastHistoryEntry.mTitle or lastHistoryEntry.mUri be > null? No; we check lastHistoryEntry == null a few lines above, and the HistoryEntry comments for mUri and mTitle say "must never be null".
Assignee | ||
Comment 5•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/967583dbaa67
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #5) > http://hg.mozilla.org/integration/mozilla-inbound/rev/967583dbaa67 Ignore this, wrong link. Corrected inbound link: http://hg.mozilla.org/integration/mozilla-inbound/rev/ea603d53c3b8
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ea603d53c3b8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Updated•12 years ago
|
blocking-fennec1.0: ? → +
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•