Skip to content

[Google3 Bug]: NullPointerException on AccessibilityBridge #180381

Closed

Description

@1e0ng

Help us understand the severity of this issue

  • causing severe production issues e.g. malfunctions or data loss
  • blocking next binary release
  • blocking a client feature launch within a quarter
  • nice-to-have but does not block a launch within the next quarter

Steps to reproduce

We haven't found a way to reproduce it yet.

Expected results

No crash.

Actual results

There are crashes: b/464096258

Code sample

On file AccessibilityBridge.java, in line 992, there is a recent change:

          assert embeddedView != null;
          // The embedded view is initially marked as not important at creation in the platform
          // view controller, so we must explicitly mark it as important here.
          embeddedView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);

Note, the assert is usually ignored in production build. Here we should do an if condition check, just like other places, for example, line 1643 and line 2031.

I suggest the code to be:

          if (embeddedView != null) {
              // The embedded view is initially marked as not important at creation in the platform
              // view controller, so we must explicitly mark it as important here.
              embeddedView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
              result.addChild(embeddedView);
          }

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

NA.

Activity

  1. added
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    in triagePresently being triaged by the triage team
    team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)
    c: crashStack traces logged to the console
    a: productionIssues experienced in live production apps
    needs repro infoAutomated crash report whose cause isn't yet known
    c: datalossCan result in the user losing their state
    platform-androidAndroid applications specifically
    engineflutter/engine related. See also e: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Dec 30, 2025
  2. deminearchiver commented on Jan 2, 2026

    @deminearchiver

    Hello! I think this issue is related to #179922, which has a little more context.

  3. 1e0ng commented on Jan 5, 2026

    @1e0ng
    Author

    Yes, @deminearchiver it looks they are related.

  4. gmackall commented on Jan 6, 2026

    @gmackall
    Member

    This should have been fixed by #180539. Please let me know if you experience otherwise. Also will cherry pick the fix to beta/stable.

  5. added
    r: fixedIssue is closed as already fixed in a newer version
    on Jan 7, 2026
  6. github-actions commented on Jan 22, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: productionIssues experienced in live production appsc: crashStack traces logged to the consolec: datalossCan result in the user losing their statecustomer: googleVarious Google teamsengineflutter/engine related. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions