fix null pointer exception

This commit is contained in:
金戟 2020-12-14 22:45:41 +08:00
parent 83974cfb2a
commit f624c9131e

View File

@ -66,7 +66,7 @@ public class TestableMojo extends AbstractMojo
return;
}
String extraArgs = "";
if (!logLevel.isEmpty()) {
if (logLevel != null && !logLevel.isEmpty()) {
extraArgs += logLevel;
}
final String oldArgs = projectProperties.getProperty(testArgsPropertyKey);