Skip to content

Commit 5f4c99e

Browse files
ndeloofglours
authored andcommitted
prevent panic resolving environment
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 30ff01d commit 5f4c99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ func (p Project) WithServicesEnvironmentResolved(discardEnvFiles bool) (*Project
658658
return resolve, true
659659
}
660660
// then service.environment
661-
if s, ok := service.Environment[k]; ok {
661+
if s, ok := service.Environment[k]; ok && s != nil {
662662
return *s, true
663663
}
664664
return "", false

0 commit comments

Comments
 (0)