Crash in [@ java.lang.NullPointerException: at mozilla.appservices.remotesettings.RemoteSettings.getRecords(remote_settings.kt)]
Categories
(Application Services :: Remote Settings, defect)
Tracking
(firefox124+ fixed, firefox125+ fixed, firefox126+ fixed)
People
(Reporter: diannaS, Assigned: skhan)
References
Details
(Keywords: crash, Whiteboard: [fxdroid])
Crash Data
Attachments
(3 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
59 bytes,
text/x-github-pull-request
|
diannaS
:
approval-mozilla-release+
|
Details | Review |
|
59 bytes,
text/x-github-pull-request
|
diannaS
:
approval-mozilla-beta+
|
Details | Review |
Updated•2 years ago
|
Comment 1•2 years ago
|
||
This exception looks like it's coming from the Android Components wrapper around the Rust Remote Settings client, not the Rust client itself.
I think it might be this line. e.message is a String?, but we don't check if it's null, so we crash trying to call null.toString().
Matt, Sarah, could that be possible?
Updated•2 years ago
|
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Nope, it's not e.message.toString(); Matt pointed out that Any?.toString() is safe:
Can be called with a null receiver, in which case it returns the string "null".
There's something else going on.
Comment 4•2 years ago
•
|
||
I think we should accept Sarah's patch to swallow the exception and prevent the crash for now and either file a follow-up to continue investigating the root cause or leave this bug as unresolved until we can find it
Comment 7•2 years ago
|
||
Backed out for causing detekt & klint failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/4ad3597787fed9885ed7cb37ad5c04348f688060
Comment 9•2 years ago
|
||
| bugherder | ||
Comment 10•2 years ago
|
||
| Assignee | ||
Comment 11•2 years ago
|
||
Comment on attachment 9392626 [details] [review]
[mozilla-mobile/firefox-android] Bug 1886730 - catch NLP during RemoteSetting getRecords() failure (#6045)
Beta/Release Uplift Approval Request
- User impact if declined: Will face a crash
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Just catching an exception that would be fixing the other prominent bug
- String changes made/needed: No
- Is Android affected?: Yes
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
| Reporter | ||
Comment 13•2 years ago
|
||
| Reporter | ||
Comment 14•2 years ago
|
||
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•