BUG-4679: NPE in IPv4 prefix withdrawn Update msg serialization
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / AdjRibOutListener.java
index c1b57205c60527b0a027f1f7829dc2d20b2b5808..72827d4299e3f616327c03d3f8e21d2e773483af 100644 (file)
@@ -121,6 +121,9 @@ final class AdjRibOutListener implements DOMDataTreeChangeListener {
     }
 
     private Update withdraw(final MapEntryNode route) {
+        if (!this.mpSupport) {
+            return buildUpdate(Collections.<MapEntryNode>emptyList(), Collections.singleton(route), routeAttributes(route));
+        }
         return this.support.buildUpdate(Collections.<MapEntryNode>emptyList(), Collections.singleton(route), routeAttributes(route));
     }