Исправлен баг в классе Units

This commit is contained in:
Struchkov Mark 2022-05-11 10:51:59 +03:00
parent 21b129999a
commit f03bf1fc05
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>dev.struchkov</groupId>
<artifactId>autoresponder</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<packaging>jar</packaging>
<name>Abstract Autoresponder</name>

View File

@ -26,7 +26,7 @@ public class Units {
public static void link(Unit first, Unit second) {
isNotNull(first, second);
final Set<Unit> nextUnits = first.getNextUnits();
if (isNotEmpty(nextUnits)) {
if (nextUnits != null) {
nextUnits.add(second);
}
}