Closed
Bug 1316004
Opened 8 years ago
Closed 8 years ago
[findbugs] [NP] Possible null pointer dereference of dispatcher in org.mozilla.gecko.javaaddons.JavaAddonManagerV1.handleMessage(String, NativeJSObject, EventCallback)
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox53 fixed)
RESOLVED
FIXED
Firefox 53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: sebastian, Assigned: swaroop.rao, Mentored)
References
Details
(Whiteboard: [lang=java][good first bug])
Attachments
(1 file)
Possible null pointer dereference of dispatcher in org.mozilla.gecko.javaaddons.JavaAddonManagerV1.handleMessage(String, NativeJSObject, EventCallback)
"There is a branch of statement that, if executed, guarantees that a null value will be dereferenced, which would generate a NullPointerException when the code is executed. Of course, the problem might be that the branch or statement is infeasible and that the null pointer exception can't ever be executed; deciding that is beyond the ability of FindBugs."
Reporter | ||
Comment 1•8 years ago
|
||
To start, set up a build environment - you can see the instructions here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build
Then, you'll need to upload a patch - see:
http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/commits.html
If you need any help, you can reply to this bug, or feel free to message me on IRC - my nick is "sebastian" and you can find me and other helpful folks in #mobile. If you need IRC setup instructions, see https://wiki.mozilla.org/IRC
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8810008 [details]
Bug 1316004 - Fixed by putting the offending statement in an else block;
https://reviewboard.mozilla.org/r/92482/#review92944
LGTM.
Attachment #8810008 -
Flags: review?(s.kaspari) → review+
Reporter | ||
Comment 4•8 years ago
|
||
Assignee: nobody → swaroop.rao
Status: NEW → ASSIGNED
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fc1cb5366882
Fixed by putting the offending statement in an else block; r=sebastian
Keywords: checkin-needed
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
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
•