Shashikanth VH
Committed by Gerrit Code Review

Exception fix.

Change-Id: I238bc6f1e27c8f5211bd542b70a167014d9dc8a3
......@@ -277,8 +277,14 @@ public class PathManager implements PathService {
// Produces a direct edge-to-edge path.
private DisjointPath edgeToEdgePathD(EdgeLink srcLink, EdgeLink dstLink, DisjointPath path) {
return new DefaultDisjointPath(PID, (DefaultPath) edgeToEdgePath(srcLink, dstLink, path.primary()),
(DefaultPath) edgeToEdgePath(srcLink, dstLink, path.backup()));
Path primary = null;
Path backup = null;
if (path != null) {
primary = path.primary();
backup = path.backup();
}
return new DefaultDisjointPath(PID, (DefaultPath) edgeToEdgePath(srcLink, dstLink, primary),
(DefaultPath) edgeToEdgePath(srcLink, dstLink, backup));
}
......