Fixes for DestinationMapperFlowsTest
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / mapper / destination / DestinationMapperUtils.java
index 48290785245513eb4efe33122d43157361fe21b8..aefa5ba6aa6a3ba170529f03b7f3cbce87bd6ee1 100644 (file)
@@ -62,7 +62,7 @@ class DestinationMapperUtils {
     }
 
     L3Context getL3ContextForSubnet(IndexedTenant indexedTenant, Subnet subnet) {
-        if (indexedTenant == null || subnet.getParent() == null) {
+        if (indexedTenant == null || subnet == null || subnet.getParent() == null) {
             return null;
         }
         return indexedTenant.resolveL3Context(new L2FloodDomainId(subnet.getParent().getValue()));