Fix NoSuchElementException

Change-Id: I2c80400d10dffd7dfda777de5279135ae687af35
This commit is contained in:
Charles Chan 2017-09-11 15:21:57 -07:00 committed by Ray Milkey
parent 45fede439d
commit 71e64f18e5

View File

@ -244,6 +244,11 @@ public class DefaultRoutingHandler {
*/
// XXX refactor
protected void populateSubnet(Set<ConnectPoint> cpts, Set<IpPrefix> subnets) {
if (cpts == null || cpts.size() < 1 || cpts.size() > 2) {
log.warn("Skipping populateSubnet due to illegal size of connect points. {}", cpts);
return;
}
lastRoutingChange = DateTime.now();
statusLock.lock();
try {