Closed
Bug 774156
Opened 13 years ago
Closed 13 years ago
Fix NPE in Tabs when "Don't keep activities" is enabled
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox15 verified, firefox16 verified, firefox17 verified)
VERIFIED
FIXED
Firefox 16
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
Crash Data
Attachments
(1 file)
1.08 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #642462 -
Flags: review?(mark.finkle)
Comment 1•13 years ago
|
||
Comment on attachment 642462 [details] [diff] [review]
patch
># HG changeset patch
># Parent c2760174d69844689f2ed95b83bff634c34ce0c2
># User Brian Nicholson <bnicholson@mozilla.com>
>diff --git a/mobile/android/base/Tabs.java b/mobile/android/base/Tabs.java
>--- a/mobile/android/base/Tabs.java
>+++ b/mobile/android/base/Tabs.java
>@@ -96,17 +96,18 @@ public class Tabs implements GeckoEventL
> // This avoids a NPE below, but callers need to be careful to
> // handle this case
> if (tab == null)
> return null;
>
> mSelectedTab = tab;
> GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
> public void run() {
>- GeckoApp.mAppContext.mFormAssistPopup.hide();
>+ if (GeckoApp.mAppContext.mFormAssistPopup != null)
>+ GeckoApp.mAppContext.mFormAssistPopup.hide();
> if (isSelectedTab(tab)) {
> String url = tab.getURL();
> notifyListeners(tab, TabEvents.SELECTED);
>
> if (oldTab != null)
> notifyListeners(oldTab, TabEvents.UNSELECTED);
> }
> }
Attachment #642462 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
Assignee | ||
Updated•13 years ago
|
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.Tabs$2.run(Tabs.java)]
Assignee | ||
Comment 5•13 years ago
|
||
status-firefox15:
--- → fixed
Updated•13 years ago
|
Updated•5 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
•