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)

x86_64
Android
defect

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

        // 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?

Severity: -- → S3
Keywords: good-first-bug
Priority: -- → P3

The problem is that the label is received as null at runtime. It is currently annotated as @NotNull.

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
Whiteboard: [fxdroid] [geckoview]
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
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: