Closed
Bug 1248799
Opened 7 years ago
Closed 7 years ago
[coverity] Potential null pointer dereference in ToolbarDisplayLayout
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1236431
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
via Coverity:
*** CID 123355: Null pointer dereferences (FORWARD_NULL)
/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarDisplayLayout.java: 363 in org.mozilla.gecko.toolbar.ToolbarDisplayLayout.updateProgress(org.mozilla.gecko.Tab)()
357 private void updateProgress(Tab tab) {
358 final boolean shouldShowThrobber = (tab != null &&
359 tab.getState() == Tab.STATE_LOADING);
360
361 updateUiMode(shouldShowThrobber ? UIMode.PROGRESS : UIMode.DISPLAY);
362
>>> CID 123355: Null pointer dereferences (FORWARD_NULL)
>>> Calling a method on null object "tab".
363 if (Tab.STATE_SUCCESS == tab.getState() && mTrackingProtectionEnabled) {
364 mActivity.showTrackingProtectionPromptIfApplicable();
365 }
366 }
367
368 private void updateUiMode(UIMode uiMode) {
Assignee | ||
Comment 1•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/35189/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/35189/
Attachment #8720033 -
Flags: review?(s.kaspari)
Comment 2•7 years ago
|
||
I already fixed this as part of the "pre" patch in bug 1236431. :)
Comment 3•7 years ago
|
||
Comment on attachment 8720033 [details] MozReview Request: Bug 1248799 - Don't call method on potentially null tab Object. r=sebastian (In reply to Sebastian Kaspari (:sebastian) from comment #2) > I already fixed this as part of the "pre" patch in bug 1236431. :) http://hg.mozilla.org/integration/fx-team/rev/7945d91d718d
Updated•7 years ago
|
Attachment #8720033 -
Flags: review?(s.kaspari)
Comment 4•7 years ago
|
||
Also see bug 1248908: This tool wants to remove the null checks again. And it seems like it's right.
See Also: → 1248908
Assignee | ||
Comment 5•7 years ago
|
||
(comment 2)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•2 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
•