From 8f1ae343e4bc1436e3d2d5ccbe6b9514504ee494 Mon Sep 17 00:00:00 2001 From: sdelamo Date: Mon, 17 Dec 2018 14:58:37 +0100 Subject: [PATCH] Check != null not groovy truth --- .../src/main/groovy/org/grails/config/NavigableMap.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy index 754bbd7c37c..ce3a5d3ce95 100644 --- a/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy +++ b/grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy @@ -80,7 +80,7 @@ class NavigableMap implements Map, Cloneable { @Override Object get(Object key) { Object result = delegateMap.get(key) - if (result) { + if (result != null) { return result } if (key ==~ SUBSCRIPT_REGEX) {