Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void execute() throws EnforcerRuleException {

String errMsg = repoErrMsg + pluginRepoErrMsg;

if (errMsg != null && !errMsg.isEmpty()) {
if (!errMsg.isEmpty()) {
throw new EnforcerRuleException(errMsg);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private Plugin parsePluginString(String pluginString, String field) throws Enfor
throw new EnforcerRuleError("Invalid " + field + " string: " + pluginString);
}
} else {
throw new EnforcerRuleError("Invalid " + field + " string: " + pluginString);
throw new EnforcerRuleError("Invalid " + field + " null plugin string.");
}
}

Expand Down