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

Commit 210f3d6

Browse files
author
Ryan Shaffer
authored
Fix possible null reference in CompilationLoader (#481)
1 parent 0fe402c commit 210f3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QsCompiler/Compiler/CompilationLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public CompilationLoader(SourceLoader loadSources, ReferenceLoader loadReference
441441
RaiseCompilationTaskStart("OverallCompilation", "Build");
442442
this.CompilationStatus.Validation = Status.Succeeded;
443443
var files = CompilationUnitManager.InitializeFileManagers(sourceFiles, null, this.OnCompilerException); // do *not* live track (i.e. use publishing) here!
444-
var executionTarget = this.Config.AssemblyConstants.GetValueOrDefault(ExecutionTarget);
444+
var executionTarget = this.Config.AssemblyConstants?.GetValueOrDefault(ExecutionTarget);
445445
var compilationManager = new CompilationUnitManager(
446446
this.OnCompilerException,
447447
capabilities: this.Config.RuntimeCapabilities,

0 commit comments

Comments
 (0)