From: Svjatoslav Agejenko Date: Mon, 16 Jun 2025 19:28:49 +0000 (+0300) Subject: Null pointer bugfix X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=7579423f3455c7d01daceb094e483fb7d6069768;p=alyverkko-cli.git Null pointer bugfix --- 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();