[Bug #1191] Avoid NullPointerException in "Hours Worked Per Resource" report
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
c980d96b82
commit
3d31ac2e00
1 changed files with 3 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue