Fix bug NullPointerException in retrieveTaskFromModel()
* Compare by orderElement.code (always exist at this point) instead of task.id (newer tasks may not have an id) FEA: ItEr63OTS06MonteCarlo
This commit is contained in:
parent
9daf7e6d34
commit
3366295ff0
1 changed files with 2 additions and 1 deletions
|
|
@ -242,7 +242,8 @@ public class MonteCarloModel implements IMonteCarloModel {
|
|||
|
||||
private Task retrieveTaskFromModel(Task task) {
|
||||
for (TaskElement each: orderTasks) {
|
||||
if (each.getId().equals(task.getId())) {
|
||||
String code = each.getOrderElement().getCode();
|
||||
if (code.equals(task.getOrderElement().getCode())) {
|
||||
return (Task) each;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue