Revert "[Bug #1191] avoid null pointer exception"
This reverts commit 662fd3b2d3.
This commit is contained in:
parent
82f52c2890
commit
c980d96b82
1 changed files with 1 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue