ItEr29S18RFVisualizacionMultiplesProxectos: Fixed bug in "getAssociatedTaskElement()" method.
This commit is contained in:
parent
6610cc2bb6
commit
4510bd242c
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ public class Order extends OrderLineGroup implements IValidable {
|
|||
|
||||
public TaskGroup getAssociatedTaskElement() {
|
||||
Set<TaskElement> taskElements = this.getTaskElements();
|
||||
if (taskElements != null) {
|
||||
if (!taskElements.isEmpty()) {
|
||||
return (TaskGroup) taskElements.iterator().next();
|
||||
} else {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue