Skip to content

NotNullFinder fails to report Null entries on Arrays #8

@edwardrowe

Description

@edwardrowe

When you apply a NotNullAttribute to an array, each element gets the warning in the editor as expected, which is sweet. However, when doing the "NotNull" search no errors are given for null members.

Expected behaviour (WIP):

  1. Arrays should error for every member that is not wired up.
  2. Arrays that have no size should not assert. This is admittedly strange because why is an array of 0 given a require wire attribute? In general, requireWire doesn't make much sense on arrays.
  3. Another implementation is to have an ArrayNotNull attribute that requires the array is a certain size.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions