Closed
Bug 1459513
Opened 7 years ago
Closed 7 years ago
Crash in java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at org.mozilla.gecko.webapps.WebAppManifest.isInScope(WebAppManifest.java)
Categories
(Firefox for Android Graveyard :: Web Apps (PWAs), defect)
Tracking
(firefox59 wontfix, firefox60 wontfix, firefox61 verified, firefox62 fixed)
RESOLVED
FIXED
Firefox 62
People
(Reporter: philipp, Assigned: droeh)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
snorp
:
review+
RyanVM
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-850fd4e7-26ac-4232-ac87-3e1c80180506.
=============================================================
Java Stack Trace
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at org.mozilla.gecko.webapps.WebAppManifest.isInScope(WebAppManifest.java:228)
at org.mozilla.gecko.webapps.WebAppActivity.onLoadRequest(WebAppActivity.java:382)
at org.mozilla.geckoview.GeckoSession$2.handleMessage(GeckoSession.java:167)
at org.mozilla.geckoview.GeckoSession$2.handleMessage(GeckoSession.java:139)
at org.mozilla.geckoview.GeckoSessionHandler.handleMessage(GeckoSessionHandler.java:105)
at org.mozilla.gecko.EventDispatcher$2.run(EventDispatcher.java:337)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
=============================================================
this signature is showing up in crash reports from fennec 58 and later. many user comments talk about pinning google+ to the homescreen and following links from there, like for example at bp-08ad6960-d1a9-490d-bc27-d80f00180127
Assignee | ||
Comment 1•7 years ago
|
||
Assignee: nobody → droeh
Attachment #8975165 -
Flags: review?(snorp)
Assignee | ||
Comment 2•7 years ago
|
||
Minor fix to original patch.
Attachment #8975165 -
Attachment is obsolete: true
Attachment #8975165 -
Flags: review?(snorp)
Attachment #8975170 -
Flags: review?(snorp)
Attachment #8975170 -
Flags: review?(snorp) → review+
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b0a5c38cfff2
Handle null uri components gracefully in WebAppManifest. r=snorp
Comment 4•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Comment 5•7 years ago
|
||
Please request Beta approval on this when you get a chance.
Flags: needinfo?(droeh)
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8975170 [details] [diff] [review]
Handle null uri components in WebAppManifest
Approval Request Comment
[Feature/Bug causing the regression]: bug 1353868
[User impact if declined]: Crashes in the Google+ PWA and possibly other PWAs
[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]: Probably not.
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: Effectively just checks for a possible null pointer
[String changes made/needed]: None
Flags: needinfo?(droeh)
Attachment #8975170 -
Flags: approval-mozilla-beta?
Comment 7•7 years ago
|
||
Comment on attachment 8975170 [details] [diff] [review]
Handle null uri components in WebAppManifest
Add a null check to avoid a Fennec crash. Approved for 61.0b7.
Attachment #8975170 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 8•7 years ago
|
||
bugherder uplift |
Comment 9•7 years ago
|
||
We tested on 61.0b7 with Nexus 5(Android 6.0.1), Samsung Galaxy Note 8(Android 8.0), Xiaomi Mi4i (Android 5.0.2), OnePlus 5T(Android 8.0) with Google+ and others PWAs and we didn't encounter any crash.
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
•