condition fixed
Change-Id: I84e808fedfd28536b320ea1a81fd0a3193b75481
Signed-off-by: Matej Perina <matej.perina@pantheon.sk>
ReadTransaction rTx) {
Optional<Nodes> potentialNodes = DataStoreHelper.readFromDs(LogicalDatastoreType.CONFIGURATION,
InstanceIdentifier.builder(Nodes.class).build(), rTx);
- if (!potentialNodes.isPresent() && potentialNodes.get().getNode() != null) {
+ if (!potentialNodes.isPresent() || potentialNodes.get().getNode() == null) {
return ImmutableSetMultimap.of();
}
List<Node> nodes = potentialNodes.get().getNode();