[Bug #916] Fixed issue checking if list of constraints is empty and not only if it is null.
FEA: ItEr72S04BugFixing
This commit is contained in:
parent
be05e7fcec
commit
488b3958a8
1 changed files with 4 additions and 3 deletions
|
|
@ -311,13 +311,14 @@ public class CriticalPathCalculator<T, D extends IDependency<T>> {
|
|||
.getStartConstraintsFor(task);
|
||||
List<Constraint<GanttDate>> endConstraints = graph
|
||||
.getEndConstraintsFor(task);
|
||||
if ((startConstraints == null) && (endConstraints == null)) {
|
||||
if ((startConstraints == null || startConstraints.isEmpty())
|
||||
&& (endConstraints == null || endConstraints.isEmpty())) {
|
||||
return null;
|
||||
}
|
||||
if (startConstraints == null) {
|
||||
if (startConstraints == null || startConstraints.isEmpty()) {
|
||||
return Constraint.coalesce(endConstraints);
|
||||
}
|
||||
if (endConstraints == null) {
|
||||
if (endConstraints == null || endConstraints.isEmpty()) {
|
||||
return Constraint.coalesce(startConstraints);
|
||||
}
|
||||
startConstraints.addAll(endConstraints);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue