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
Description
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.