commit | fc10dca2dc239ea879e9dde90c58d84a5ac01593 | [log] [tgz] |
---|---|---|
author | Avantika-Huawei <avantika.s@huawei.com> | Fri Jun 10 16:13:55 2016 +0530 |
committer | Avantika-Huawei <avantika.s@huawei.com> | Fri Jun 10 16:13:55 2016 +0530 |
tree | b5a89d0a9eacdd36b03926432c73dfadb0119e96 | |
parent | 8e9f8d151070de13be4cb347efe4e4f2f33324a9 [diff] [blame] |
[ONOS-4687] GoldenEye - Label map download issues. Change-Id: I5b56ccc6b8bad3c585f4d33ddd6d9094751c8797
diff --git a/protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/PcepClientControllerImpl.java b/protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/PcepClientControllerImpl.java index cb40ea0..00a7a20 100644 --- a/protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/PcepClientControllerImpl.java +++ b/protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/PcepClientControllerImpl.java
@@ -434,10 +434,16 @@ } List<PcepStateReport> syncStateRptList = pc.getSyncMsgList(pccId); + if (syncStateRptList == null) { + // When there are no LSPs to sync, directly end-of-sync PCRpt will come and the + // list will be null. + syncStateRptList = Collections.EMPTY_LIST; + } + Iterator<PcepStateReport> stateRptListIterator = syncStateRptList.iterator(); // For every report, fetch PLSP id, local LSP id and symbolic path name from the message. - while (syncStateRptList.iterator().hasNext()) { + while (stateRptListIterator.hasNext()) { PcepStateReport stateRpt = stateRptListIterator.next(); Tunnel tunnel = null;