Closed
Bug 1426864
Opened 6 years ago
Closed 6 years ago
Crash in java.lang.NullPointerException: Attempt to invoke virtual method ''boolean org.mozilla.gecko.Tab.isPrivate()'' on a null object reference at org.mozilla.gecko.BrowserApp.onSearch(BrowserApp.java)
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox57 wontfix, firefox58 fixed, firefox59 fixed)
RESOLVED
FIXED
Firefox 59
People
(Reporter: JanH, Assigned: JanH)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
cnevinchen
:
review+
gchang
:
approval-mozilla-beta+
|
Details |
This bug was filed from the Socorro interface and is report bp-aa5d7a89-1c9a-47a2-8e72-1125a0171222. ============================================================= java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.mozilla.gecko.Tab.isPrivate()' on a null object reference at org.mozilla.gecko.BrowserApp.onSearch(BrowserApp.java:4309) at org.mozilla.gecko.home.SearchEngineRow$1.onClick(SearchEngineRow.java:118) at android.view.View.performClick(View.java:5646) at android.view.View$PerformClick.run(View.java:22459) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6523) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) =============================================================
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8938653 -
Flags: review?(cnevinchen)
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8938653 [details] Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. https://reviewboard.mozilla.org/r/209262/#review215098 Do you think we should add @CheckResult on Tabs.class's getSelectedTab() method?
Attachment #8938653 -
Flags: review?(cnevinchen) → review+
Assignee | ||
Comment 3•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8938653 [details] Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. https://reviewboard.mozilla.org/r/209262/#review215098 I can add it for completeness (and probably should update the javadoc comment a little while I'm at it), although not using the return value of that method (which I think is all that @CheckResult enforces) isn't the problem in this case. The issue at hand is the selected tab possibly being null, which we've already got the @Nullable annotation for.
Assignee | ||
Comment 4•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8938653 [details] Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. https://reviewboard.mozilla.org/r/209262/#review215098 Adding these things in bug 1426613, since that'll be the parent changeset of this bug.
Comment hidden (mozreview-request) |
Pushed by mozilla@buttercookie.de: https://hg.mozilla.org/integration/autoland/rev/36b69642c15c Determine private mode via browser toolbar, 2nd edition. r=nechen
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/36b69642c15c
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Assignee | ||
Comment 8•6 years ago
|
||
Comment on attachment 8938653 [details] Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. Approval Request Comment [Feature/Bug causing the regression]: Awesomescreen search [User impact if declined]: Firefox could crash if a search is launched while no tab exists yet. [Is this code covered by automated tests?]: No. [Has the fix been verified in Nightly?]: No. [Needs manual test from QE? If yes, steps to reproduce]: No. [List of other uplifts needed for the feature/fix]: Bug 1426613 and bug 1352133 are very similar crashes that might also happen along the same code path, i.e. if only one bug is fixed you might still crash because of one of the other bugs. [Is the change risky?]: No. [Why is the change risky/not risky?]: Instead of looking at the currently selected tab (which might not exist yet early during startup) we look at the browser toolbar (which is guaranteed to exist if the awesomescreen UI has loaded) to determine whether we're in private browsing or not. [String changes made/needed]: none
Attachment #8938653 -
Flags: approval-mozilla-beta?
Updated•6 years ago
|
status-firefox57:
--- → wontfix
status-firefox58:
--- → affected
Comment 9•6 years ago
|
||
Comment on attachment 8938653 [details] Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. Fix a crash related to Awesomescreen. Beta58+.
Attachment #8938653 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 10•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/05bca3daad74
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
•