Skip to content

Commit d282730

Browse files
committed
Fix dereference
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 1ec4504 commit d282730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/valuehandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (l *envLangValueListener) ExitVariable(c *valueparser.VariableContext) {
5555
case valueparser.EnvLangValueParserSTRICT_VAR_WITH_DEFAULT_IF_UNSET:
5656
vName, defaultValue := l.getNameAndDefault(varToken)
5757
value, ok := l.d.Get(vName)
58-
if !ok {
58+
if !ok || value == nil {
5959
l.append(defaultValue)
6060
return
6161
}

0 commit comments

Comments
 (0)