Closed
Bug 1771149
Opened 3 years ago
Closed 7 months ago
Select choice label is null at runtime despite having @NotNull annotation
Categories
(GeckoView :: General, defect, P3)
Tracking
(firefox141 fixed)
RESOLVED
FIXED
141 Branch
| Tracking | Status | |
|---|---|---|
| firefox141 | --- | fixed |
People
(Reporter: aputanu, Assigned: fmasalha, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [fxdroid] [geckoview])
Attachments
(1 file)
Issue created to bring awareness to the problem described here.
Based on https://github.com/mozilla-mobile/android-components/pull/12218#discussion_r880609397
Comment 1•3 years ago
|
||
// On the GeckoView docs states that label is a @NonNull, but on run-time
// we are getting null values
Is the bug that the label is null or that it should be annotated as @NonNull?
| Reporter | ||
Comment 2•3 years ago
|
||
The problem is that the label is received as null at runtime. It is currently annotated as @NotNull.
Comment 3•1 year ago
|
||
Looks like the call site for this bug is on this line: https://searchfox.org/mozilla-central/rev/ab488b411ff15c2e11dbd4d6be0455bb64bc8fc1/mobile/android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/ext/GeckoChoice.kt#15 and the Choice item is now nullable.
I think the task now is to remove the line @Suppress("USELESS_ELVIS").
Mentor: polly
Updated•7 months ago
|
Whiteboard: [fxdroid] [geckoview]
Updated•7 months ago
|
| Assignee | ||
Comment 4•7 months ago
|
||
Updated•7 months ago
|
Assignee: nobody → fmasalha
Status: NEW → ASSIGNED
Pushed by ohall@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/560e7e076462
https://hg.mozilla.org/integration/autoland/rev/bfe9fc374f2c
Select choice label is null at runtime despite having @NotNull annotation r=ohall,geckoview-reviewers,android-reviewers
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
status-firefox141:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•