[Bug #1191] Avoid NullPointerException in "Hours Worked Per Resource" report

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-09-30 12:56:52 +02:00
parent c980d96b82
commit 3d31ac2e00

View file

@ -57,6 +57,9 @@ public class HoursWorkedPerWorkerScriptlet extends JRAbstractScriptlet {
// We use the set because elements could be processed twice depending on
// the report
EffortDuration current = (EffortDuration) this.getFieldValue("effort");
if (current == null) {
current = EffortDuration.zero();
}
HoursWorkedPerResourceDTO dto = (HoursWorkedPerResourceDTO) this
.getFieldValue("self");
if (!dtos.contains(dto)) {