From f03bf1fc059c2d98630d4b80b6a8d1dc3d9b8b3b Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 11 May 2022 10:51:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D0=B2=20=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=81=D1=81=D0=B5=20Units?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/dev/struchkov/autoresponder/util/Units.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f31c5e7..0c4a795 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.struchkov autoresponder - 2.0.0 + 2.0.1 jar Abstract Autoresponder diff --git a/src/main/java/dev/struchkov/autoresponder/util/Units.java b/src/main/java/dev/struchkov/autoresponder/util/Units.java index 550f3ae..1bd2bf2 100644 --- a/src/main/java/dev/struchkov/autoresponder/util/Units.java +++ b/src/main/java/dev/struchkov/autoresponder/util/Units.java @@ -26,7 +26,7 @@ public class Units { public static void link(Unit first, Unit second) { isNotNull(first, second); final Set nextUnits = first.getNextUnits(); - if (isNotEmpty(nextUnits)) { + if (nextUnits != null) { nextUnits.add(second); } }