Replacing nonNull API's in netvirt.
[netvirt.git] / qosservice / impl / src / main / java / org / opendaylight / netvirt / qosservice / QosNeutronUtils.java
index 50b6f97c5b1c8cf4fcba45c074c304ac762b1f4b..0346c68cc3ddf2f14c8e87fd712c41cc4aed7f97 100644 (file)
@@ -883,7 +883,7 @@ public class QosNeutronUtils {
 
     public int getIpVersions(Port port) {
         int versions = 0;
-        for (FixedIps fixedIp: port.getFixedIps().values()) {
+        for (FixedIps fixedIp: port.nonnullFixedIps().values()) {
             if (fixedIp.getIpAddress().getIpv4Address() != null) {
                 versions |= (1 << QosConstants.IPV4_ADDR_MASK_BIT);
             } else if (fixedIp.getIpAddress().getIpv6Address() != null) {