Null pointer deference fix in openstackswitching

Change-Id: I00d4e3861ea699fbbc1991f85101dfaf3ae09780
This commit is contained in:
Satish K 2015-11-20 21:13:17 +05:30 committed by Gerrit Code Review
parent 3420773d06
commit a91c8713d1

View File

@ -303,7 +303,7 @@ public class OpenstackSwitchingManager implements OpenstackSwitchingService {
.filter(s -> s.networkId().equals(port.networkId()))
.findFirst().get();
if (subnet == null) {
log.debug("No subnet information for network {}", subnet.id());
log.debug("No subnet information for network {}", port.networkId());
return null;
}