ItEr19S08CUCreacionProxectoPlanificacionItEr18S08: Solved problem if fixedDuration is null.
* navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/Task.java: (getDuration) Checking if fixedDuration is or not null.
This commit is contained in:
parent
ac8eaf98c3
commit
6e71e01e9e
1 changed files with 2 additions and 2 deletions
|
|
@ -104,8 +104,8 @@ public class Task extends TaskElement {
|
|||
}
|
||||
|
||||
public Integer getDuration() {
|
||||
if (!isFixedDuration()) {
|
||||
// If it is not fixed the duration is calculated
|
||||
if ((isFixedDuration() == null) || !isFixedDuration()) {
|
||||
// If it is not fixed, the duration is calculated
|
||||
Integer duration = calculateDaysDuration();
|
||||
setDuration(duration);
|
||||
return duration;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue