Another NPE check for failure scenarios.

This commit is contained in:
Johannes Mockenhaupt 2017-12-20 00:04:14 +01:00
parent f4c1f4a3a1
commit 181338e9e2
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -804,6 +804,8 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
}
private void checkForUnsafeUsage(CommandResult commandResult) {
if (commandResult == null) return;
long lastViolation = 0;
if (commandResult.state.unsafeUsageDetected) {
lastViolation = System.currentTimeMillis();