Skip to content

Commit

Permalink
check null before convert it to boolean (Test)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin committed Aug 3, 2023
1 parent a2956b8 commit 5812982
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static void setupBeforeClass(TestContext context) {

String redisHost = (String) props.get("redis.host");
Integer redisPort = (Integer) props.get("redis.port");
Boolean redisEnableTls = (Boolean) props.get("redis.enableTls");
boolean redisEnableTls = props.get("redis.enableTls") != null ? (Boolean) props.get("redis.enableTls") : false;

props.put(ExpansionHandler.MAX_EXPANSION_LEVEL_HARD_PROPERTY, "100");
props.put(ExpansionHandler.MAX_EXPANSION_LEVEL_SOFT_PROPERTY, "4");
Expand Down

0 comments on commit 5812982

Please sign in to comment.