Bug-5688: Fix NullPointer Exception for args in Stateful07TopologySessionListener 16/37516/1
authorKevin <kevixw@gmail.com>
Tue, 12 Apr 2016 22:36:23 +0000 (15:36 -0700)
committerKevin <kevixw@gmail.com>
Tue, 12 Apr 2016 22:36:23 +0000 (15:36 -0700)
Change-Id: Iefd180597619d6a934529859c8fefcc003888686
Signed-off-by: Kevin <kevixw@gmail.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListener.java

index 340aa0363ca13effbe32012cf593f1f21f0c49ec..3af316688eaf12fb0a55b48761becd361251b534 100644 (file)
@@ -575,7 +575,7 @@ class Stateful07TopologySessionListener extends AbstractTopologySessionListener<
                 }
             }
             final Srp srp = srpBuilder.build();
-            final Lsp inputLsp = args.getLsp();
+            final Lsp inputLsp = (args != null) ? args.getLsp() : null;
             final Lsp lsp = (inputLsp != null) ?
                 new LspBuilder().setPlspId(reportedLsp.getPlspId()).setDelegate((inputLsp.isDelegate() != null) ? inputLsp.isDelegate() : false).setTlvs(inputLsp.getTlvs()).setAdministrative((inputLsp.isAdministrative() != null) ? inputLsp.isAdministrative() : false).build()
                 : new LspBuilder().setPlspId(reportedLsp.getPlspId()).build();