Исправлен баг в классе Units
This commit is contained in:
parent
21b129999a
commit
f03bf1fc05
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>dev.struchkov</groupId>
|
<groupId>dev.struchkov</groupId>
|
||||||
<artifactId>autoresponder</artifactId>
|
<artifactId>autoresponder</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Abstract Autoresponder</name>
|
<name>Abstract Autoresponder</name>
|
||||||
|
@ -26,7 +26,7 @@ public class Units {
|
|||||||
public static void link(Unit first, Unit second) {
|
public static void link(Unit first, Unit second) {
|
||||||
isNotNull(first, second);
|
isNotNull(first, second);
|
||||||
final Set<Unit> nextUnits = first.getNextUnits();
|
final Set<Unit> nextUnits = first.getNextUnits();
|
||||||
if (isNotEmpty(nextUnits)) {
|
if (nextUnits != null) {
|
||||||
nextUnits.add(second);
|
nextUnits.add(second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user