mirror of https://github.com/apache/nifi.git
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:
parent
b68eebd429
commit
d1027879eb
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue