LogicalDatastoreType.OPERATIONAL, nodePath);
transaction.close();
Optional<Node> optional = nodeFuture.get();
- if (optional != null && optional.isPresent() && optional.get() != null) {
+ if (optional.isPresent()) {
return this.getConnectionInstance(optional.get());
} else {
- LOG.warn("Found non-topological node {} on path {}",optional);
+ LOG.debug("Node was not found on the path in the operational DS: {}", nodePath);
return null;
}
} catch (InterruptedException | ExecutionException e) {