Revert "[Bug #1191] avoid null pointer exception"

This reverts commit 662fd3b2d3.
This commit is contained in:
Manuel Rego Casasnovas 2011-09-30 12:41:55 +02:00
parent 82f52c2890
commit c980d96b82

View file

@ -282,12 +282,7 @@ public class EffortDuration implements Comparable<EffortDuration> {
* {@link EffortDuration} and the other duration
*/
public EffortDuration plus(EffortDuration other) {
if (other != null){
return new EffortDuration(seconds + other.seconds);
}
else{
return new EffortDuration(seconds);
}
return new EffortDuration(seconds + other.seconds);
}
public boolean isZero() {