Skip to content

Commit

Permalink
Fix dereference
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysses Souza <[email protected]>
  • Loading branch information
ulyssessouza committed Mar 23, 2024
1 parent 1ec4504 commit d282730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/valuehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (l *envLangValueListener) ExitVariable(c *valueparser.VariableContext) {
case valueparser.EnvLangValueParserSTRICT_VAR_WITH_DEFAULT_IF_UNSET:
vName, defaultValue := l.getNameAndDefault(varToken)
value, ok := l.d.Get(vName)
if !ok {
if !ok || value == nil {
l.append(defaultValue)
return
}
Expand Down

0 comments on commit d282730

Please sign in to comment.