From 7579423f3455c7d01daceb094e483fb7d6069768 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Mon, 16 Jun 2025 22:28:49 +0300 Subject: [PATCH] Null pointer bugfix --- .../mail_correspondant/MailCorrespondentCommand.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java index 3956628..e336743 100644 --- a/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java +++ b/src/main/java/eu/svjatoslav/alyverkko_cli/commands/mail_correspondant/MailCorrespondentCommand.java @@ -136,11 +136,12 @@ public class MailCorrespondentCommand implements Command { if (key != null) { System.out.println("Detected filesystem events in mail directory. Processing ... "); processDetectedFilesystemEvents(key); - } - if (!key.reset()) { - break; + if (!key.reset()) { + break; + } } + } directoryWatcher.close(); -- 2.20.1