Skip to content

Commit

Permalink
ignore empty blacklist pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Mar 10, 2020
1 parent 5a6a069 commit bada690
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ static final class BlacklistConfiguration {
blacklist = loadBlacklistFile(blacklistFile);
}
}
blacklistPattern = new PatternList(Constants.COMMA_SPLIT_PATTERN.split(blacklist));
if (StringUtils.isNotEmpty(blacklist)) {
blacklistPattern = new PatternList(Constants.COMMA_SPLIT_PATTERN.split(blacklist));
}
} catch (Throwable t) {
logger.warn("Failed to initialize the Serialization Security Checker component!", t);
}
Expand Down

0 comments on commit bada690

Please sign in to comment.