parent
de9fae22f2
commit
662fd3b2d3
1 changed files with 6 additions and 1 deletions
|
|
@ -282,7 +282,12 @@ public class EffortDuration implements Comparable<EffortDuration> {
|
|||
* {@link EffortDuration} and the other duration
|
||||
*/
|
||||
public EffortDuration plus(EffortDuration other) {
|
||||
return new EffortDuration(seconds + other.seconds);
|
||||
if (other != null){
|
||||
return new EffortDuration(seconds + other.seconds);
|
||||
}
|
||||
else{
|
||||
return new EffortDuration(seconds);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isZero() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue