Bug-1146: Stateful02TopologyProvider#updateLsp - check ERO in input arguments 95/8295/1
authorMilos Fabian <milfabia@cisco.com>
Tue, 24 Jun 2014 11:37:13 +0000 (13:37 +0200)
committerMilos Fabian <milfabia@cisco.com>
Tue, 24 Jun 2014 11:37:13 +0000 (13:37 +0200)
Change-Id: Idb36f2a895636f65fc6e770563bd2047fa3ede13
Signed-off-by: Milos Fabian <milfabia@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful02TopologySessionListener.java

index d0f9e74f752a4e2629d96fb2c1817e4f0951cc74..fa7153d3cd72aabe7afc20d3e28fe74b5d8e3910 100644 (file)
@@ -231,6 +231,7 @@ public class Stateful02TopologySessionListener extends AbstractTopologySessionLi
         Preconditions.checkState(reportedLsp != null, "Reported LSP does not contain LSP object.");
         Arguments2 args = input.getArguments().getAugmentation(Arguments2.class);
         Preconditions.checkArgument(args != null, "Input is missing operational tag.");
+        Preconditions.checkArgument(input.getArguments().getEro() != null, "Input is missing ERO object.");
 
         // Build the PCUpd request and send it
         final UpdatesBuilder rb = new UpdatesBuilder();