Closed
Bug 1317198
Opened 8 years ago
Closed 8 years ago
Crash in java.lang.NullPointerException: Attempt to invoke virtual method ''int org.mozilla.gecko.Tab.getId()'' on a null object reference at org.mozilla.gecko.GeckoApp.onPause(GeckoApp.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox52+ fixed, firefox53- fixed)
RESOLVED
FIXED
Firefox 53
People
(Reporter: sebastian, Assigned: droeh, Mentored)
References
Details
(Keywords: crash, Whiteboard: [TPE-1])
Crash Data
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
droeh
:
review+
jcristau
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-ddf12a38-15bc-4ecb-92b0-17c112161114.
=============================================================
Comment 1•8 years ago
|
||
This seems to be caused by Bug 1305439, see the bottom of:
https://hg.mozilla.org/mozilla-central/rev/fe3fe09d24c8
Depends on: 1305439
Updated•8 years ago
|
Mentor: ahunt
Assignee | ||
Comment 2•8 years ago
|
||
This just checks if the tab is null before attempting to update the lastSelectedTabId; I didn't think it was possible to hit GeckoApp.onPause() with Tabs.mSelectedTab still being null, but apparently I was mistaken.
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8810418 [details] [diff] [review]
Null-check the Tab
Review of attachment 8810418 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ +2155,5 @@
> }
>
> + final Tab selectedTab = Tabs.getInstance().getSelectedTab();
> + if (selectedTab != null) {
> + lastSelectedTabId = Tabs.getInstance().getSelectedTab().getId();
This probably should use 'selectedTab' instead of requesting it again?
Attachment #8810418 -
Flags: review?(s.kaspari) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Yup, meant to use selectedTab there. The dangers of copy and paste :)
Carrying over the r+.
Attachment #8810418 -
Attachment is obsolete: true
Attachment #8811302 -
Flags: review+
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0f8126c38179
Check if a tab is null before trying to get its id in GeckoApp.onPause() r=sebastian
Comment 7•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Comment 8•8 years ago
|
||
1 instance of this crash has been spotted in aurora (52) too, we should probably uplift it?
status-firefox52:
--- → affected
tracking-firefox53:
--- → ?
Comment 9•8 years ago
|
||
[Tracking Requested - why for this release]:
Adjusting flags - I think in Comment 8 Andrzej wanted to track for 52, not 53 where it is resolved fixed.
tracking-firefox52:
--- → ?
Assignee | ||
Comment 10•8 years ago
|
||
Comment on attachment 8811302 [details] [diff] [review]
Null-check the Tab v1.1
Approval Request Comment
[Feature/regressing bug #]:1305439
[User impact if declined]:Potential for crashes
[Describe test coverage new/current, TreeHerder]:https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=0f8126c38179a6475b550ed97f0dfac42c4899b6
[Risks and why]: Low-risk, we just check if the selected tab is null and fall back to the old behavior if it is.
[String/UUID change made/needed]:
Attachment #8811302 -
Flags: approval-mozilla-aurora?
Comment 11•8 years ago
|
||
Comment on attachment 8811302 [details] [diff] [review]
Null-check the Tab v1.1
fix possible fennec crash, take for aurora52
Attachment #8811302 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 12•8 years ago
|
||
bugherder uplift |
Updated•8 years ago
|
Updated•4 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
•