NIFI-4839 - Fixed handling of a connection object position - it doesn't have one and just returns null (calculated by the UI dynamically)

This commit is contained in:
Andrew Grande 2018-02-14 15:25:55 -05:00 committed by Pierre Villard
parent b68eebd429
commit d1027879eb
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
@ -116,6 +117,7 @@ public class JerseyFlowClient extends AbstractJerseyClient implements FlowClient
}
final List<ProcessGroupBox> coords = positions.stream()
.filter(Objects::nonNull)
.map(p -> new ProcessGroupBox(p.getX().intValue(), p.getY().intValue()))
.collect(Collectors.toList());