From 8a7e7390afb120fa02e7b1cff44a4a7edd3b5f3c Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 11 Jul 2024 14:59:30 +0200 Subject: [PATCH] [Fix] Fixe NPE in OperationsLog.stop() --- .../java/li/strolch/handler/operationslog/OperationsLog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/src/main/java/li/strolch/handler/operationslog/OperationsLog.java b/agent/src/main/java/li/strolch/handler/operationslog/OperationsLog.java index e0b1b64f2..c7f256e31 100644 --- a/agent/src/main/java/li/strolch/handler/operationslog/OperationsLog.java +++ b/agent/src/main/java/li/strolch/handler/operationslog/OperationsLog.java @@ -103,7 +103,8 @@ public void stop() throws Exception { this.handleQueueTask.cancel(true); if (this.executorService != null) this.executorService.shutdownNow(); - this.sentMessageHashes.clear(); + if (this.sentMessageHashes != null) + this.sentMessageHashes.clear(); super.stop(); }