X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=olm%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Folm%2Futil%2FOlmUtils710.java;h=cc842c8616177c1969dfa782ae37bd6ebe39b5e0;hb=4bb3743a3214fb481e4cc147914a314c9ff6d1c3;hp=f7ab5c7fceff0628fe7ed8e70801b8b77deb99e6;hpb=303bf6a2c50119d6a16525af2bde84d74435a7a1;p=transportpce.git diff --git a/olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils710.java b/olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils710.java index f7ab5c7fc..cc842c861 100644 --- a/olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils710.java +++ b/olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils710.java @@ -95,7 +95,7 @@ final class OlmUtils710 { LogicalDatastoreType.OPERATIONAL, iidCurrentPmList, Timeouts.DEVICE_READ_TIMEOUT, Timeouts.DEVICE_READ_TIMEOUT_UNIT); if (currentPmListOpt.isPresent()) { - CurrentPmList currentPmList = currentPmListOpt.get(); + CurrentPmList currentPmList = currentPmListOpt.orElseThrow(); @NonNull Map currentPmEntryList = currentPmList.nonnullCurrentPmEntry(); LOG.info("Current PM list exists for node {} and contains {} entries.", input.getNodeId(),