File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/flagsmith/flagengine/utils/types Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public static Boolean toBoolean(Object str) {
140140 return str instanceof Boolean ? ((Boolean ) str )
141141 : BooleanUtils .toBoolean ((String ) str );
142142 } catch (Exception nfe ) {
143- return null ;
143+ return false ;
144144 }
145145 }
146146
@@ -152,7 +152,8 @@ public static Boolean toBoolean(Object str) {
152152 public static Boolean isBoolean (Object str ) {
153153 return str instanceof Boolean
154154 || Boolean .TRUE .toString ().equalsIgnoreCase ((String .valueOf (str )))
155- || Boolean .FALSE .toString ().equalsIgnoreCase ((String .valueOf (str )));
155+ || Boolean .FALSE .toString ().equalsIgnoreCase ((String .valueOf (str )))
156+ || "1" .equals (String .valueOf (str ));
156157 }
157158
158159 /**
You can’t perform that action at this time.
0 commit comments