Исправлен баг в классе Units
This commit is contained in:
parent
21b129999a
commit
f03bf1fc05
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user