Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Incorrect nullability metadata for StackTraceCollector #1039

Open
@cgranade

Description

@cgranade

Describe the bug

The Microsoft.Quantum.Simulation.Common.StackTraceCollector class contains incorrect nullability metadata that can cause null reference exceptions in code that depends on stack traces in the simulation runtime. For example, the public StackTraceCollector.CallStack property can be null if StackTraceCollector.hasFailed is false; that null can propagate out via the OnException event, causing its nullability metadata to be incorrect as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmaintenanceImprove codebase quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions