mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
Fix: resolve NPE by obtaining networkId from subnet instead of port
Change-Id: Ib49a8627e601bc893062069daf6f266fcc8e8460
This commit is contained in:
parent
700648c993
commit
bb4f541bb2
@ -330,7 +330,8 @@ public final class OpenstackSwitchingArpHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
Network network = osNetworkService.network(event.port().getNetworkId());
|
||||
Network network = osNetworkService.network(osSubnet.getNetworkId());
|
||||
|
||||
if (network == null) {
|
||||
log.warn("Network is not specified.");
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user