Skip to content

NullReferenceException in PrioritySendDataCollection.Clear() #5566

@dantraMSFT

Description

@dantraMSFT

We have two reports of a NullReferenceException in this method on macOS but it's not clear if the field(s) being accessed are null of if elements in the array are null.
The code is guarded by a Dbg.Assert but it's clear that a non-debug check is called for.
see Dbg.Assert(null != _dataToBeSent, "Serialized streams are not initialized");

See issue #4029 for repro steps.

Note that this is not repro'ing on machines available in-house.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions