fix:fix NullPointerException for replaceParam when message is null (#5280)

This commit is contained in:
qxo 2020-08-10 00:17:21 +08:00 committed by GitHub
parent 29a9d1cf76
commit b1305ba07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ public class PatternLogger implements ILog {
}
private String replaceParam(String message, Object... parameters) {
if (message == null) {
return message;
}
int startSize = 0;
int parametersIndex = 0;
int index;