Skip to content

NPE in analyzer verification of FfiNative annotations for getters #48962

@jason-simmons

Description

@jason-simmons

In the Flutter engine we saw an NPE in the analyzer package when running Dartdoc on the FFI native function bindings
(example: https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20docs_test/10279/overview)

This happens when the analyzer checks an FfiNative annotation applied to a getter.

FfiVerifier._checkFfiNative assumes that every MethodDeclaration has parameters and needs a special case for methods with the isGetter flag.

@cskau-g

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failureslegacy-area-analyzerUse area-devexp instead.library-ffi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions