Skip to content

Commit 4a77980

Browse files
committed
nil check in envOverride.chart
1 parent 5a198fe commit 4a77980

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/deployment/manifest/ManifestCreationService.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ func (impl *ManifestCreationServiceImpl) getEnvOverrideForLastSavedConfigTrigger
473473
return nil, err
474474
}
475475
}
476-
envOverride.Chart = chart
476+
if envOverride != nil {
477+
envOverride.Chart = chart
478+
}
477479
} else if envOverride.Id > 0 && !envOverride.IsOverride {
478480
_, span = otel.Tracer("orchestrator").Start(ctx, "chartRepository.FindLatestChartForAppByAppId")
479481
chart, err = impl.chartRepository.FindLatestChartForAppByAppId(overrideRequest.AppId)

0 commit comments

Comments
 (0)