Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

nullref in SpecializedNamespace.get_Overloads #449

Closed

Description

Seeing this one pop up. It looks like the checks on _original being null are not consistent in this file.

Also, the statements ending in ?.MaybeEnumerate() are likely not needed either. ripgrepping shows:

$ rg '\?\.MaybeEnumerate'
src\Analysis\Engine\Impl\ModuleAnalysis.cs
356:            if (v.Variable?.Types?.MaybeEnumerate().FirstOrDefault() is ParameterInfo) {

src\Analysis\Engine\Impl\Values\SpecializedNamespace.cs
212:        public override IEnumerable<ILocationInfo> Locations => _original?.Locations?.MaybeEnumerate();
220:        internal override IEnumerable<ILocationInfo> References => _original.References?.MaybeEnumerate();

I have a fix ready, just making this for tracking.

Activity

  1. added
    bug
    on Dec 3, 2018
  2. added a commit that references this issue on Dec 3, 2018
    5131b37
  3. added a commit that references this issue on Nov 1, 2019
    3e3030f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions