Shashikanth VH
Committed by Gerrit Code Review

Exception fix.

Change-Id: I238bc6f1e27c8f5211bd542b70a167014d9dc8a3
...@@ -277,8 +277,14 @@ public class PathManager implements PathService { ...@@ -277,8 +277,14 @@ public class PathManager implements PathService {
277 277
278 // Produces a direct edge-to-edge path. 278 // Produces a direct edge-to-edge path.
279 private DisjointPath edgeToEdgePathD(EdgeLink srcLink, EdgeLink dstLink, DisjointPath path) { 279 private DisjointPath edgeToEdgePathD(EdgeLink srcLink, EdgeLink dstLink, DisjointPath path) {
280 - return new DefaultDisjointPath(PID, (DefaultPath) edgeToEdgePath(srcLink, dstLink, path.primary()), 280 + Path primary = null;
281 - (DefaultPath) edgeToEdgePath(srcLink, dstLink, path.backup())); 281 + Path backup = null;
282 + if (path != null) {
283 + primary = path.primary();
284 + backup = path.backup();
285 + }
286 + return new DefaultDisjointPath(PID, (DefaultPath) edgeToEdgePath(srcLink, dstLink, primary),
287 + (DefaultPath) edgeToEdgePath(srcLink, dstLink, backup));
282 } 288 }
283 289
284 290
......