[Bug #613] Fix bug.
Avoid edge case, the EffortDuration can be null FEA: ItEr60S19TimeUnitDataType
This commit is contained in:
parent
c93d14a300
commit
f60363b17c
1 changed files with 3 additions and 0 deletions
|
|
@ -76,6 +76,9 @@ public abstract class BaseCalendarEditionController extends
|
|||
GenericForwardComposer {
|
||||
|
||||
private static String asString(EffortDuration duration) {
|
||||
if (duration == null) {
|
||||
return "";
|
||||
}
|
||||
EnumMap<Granularity, Integer> decomposed = duration.decompose();
|
||||
|
||||
String result = _("{0}h", decomposed.get(Granularity.HOURS));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue