Tasks list empty in executionEntity

Description

When fetching ExecutionEntity y Execution id, the tasks lists comes out to be empty, when it should have a list with one element.
The reason is, in ExecutionEntity.java when tasks is being lazily fetched, we check if tasks list is null. If it's null we fetch the list of tasks, else, we return whatever it is. This condition fails when tasks list is empty but not null.
Adding an empty check seems to fix the issue.

Assignee

Joram Barrez

Reporter

Abhishek Mittal

Labels

None

Components

Fix versions

Priority

Medium
Configure