[Bug #613] Fix bug.

Avoid edge case, the EffortDuration can be null

FEA: ItEr60S19TimeUnitDataType
This commit is contained in:
Óscar González Fernández 2010-09-02 12:35:30 +02:00
parent c93d14a300
commit f60363b17c

View file

@ -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));