File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Aspire.Hosting/Pipelines Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class PipelineConfigurationContext
2727 /// </summary>
2828 public required DistributedApplicationModel Model { get ; init ; }
2929
30- internal IReadOnlyDictionary < PipelineStep , IResource > StepToResourceMap { get ; init ; } = null ! ;
30+ internal IReadOnlyDictionary < PipelineStep , IResource > ? StepToResourceMap { get ; init ; }
3131
3232 /// <summary>
3333 /// Gets all pipeline steps with the specified tag.
@@ -48,7 +48,7 @@ public IEnumerable<PipelineStep> GetSteps(string tag)
4848 public IEnumerable < PipelineStep > GetSteps ( IResource resource )
4949 {
5050 ArgumentNullException . ThrowIfNull ( resource ) ;
51- return StepToResourceMap . Where ( kvp => kvp . Value == resource ) . Select ( kvp => kvp . Key ) ;
51+ return StepToResourceMap ? . Where ( kvp => kvp . Value == resource ) . Select ( kvp => kvp . Key ) ?? [ ] ;
5252 }
5353
5454 /// <summary>
You can’t perform that action at this time.
0 commit comments