BUG-4827: Replace extractPathId method from RibSupport
[bgpcep.git] / bgp / path-selection-mode / src / main / java / org / opendaylight / protocol / bgp / mode / impl / add / RouteKey.java
index 9ee48a4ca5a4e9cf220a3f74028c7de09fc82416..9e1211c6b9d9e184acff380478b183a70d5faeb5 100644 (file)
@@ -17,7 +17,7 @@ public final class RouteKey implements Comparable<RouteKey> {
 
     public RouteKey(final UnsignedInteger routerId, final Long remotePathId) {
         this.routerId = routerId;
-        this.remotePathId = remotePathId;
+        this.remotePathId = remotePathId == null ? 0 : remotePathId;
     }
 
     private Long getExternalPathId() {