Set Node on the AddFlowInput and RemoveFlowInput 05/4005/3
authorMoiz Raja <moraja@cisco.com>
Fri, 3 Jan 2014 00:58:01 +0000 (16:58 -0800)
committerEd Warnicke <eaw@cisco.com>
Mon, 6 Jan 2014 12:40:55 +0000 (04:40 -0800)
This avoids the NPE reported in bug #259

Change-Id: Ic48123a39d4d2fa0b280ac5540f6a5e1304036ef
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/compatibility/sal-compatibility/src/main/java/org/opendaylight/controller/sal/compatibility/MDFlowMapping.xtend

index bc6b88d9c845d233e4c15494e9c0ed41f7e72bf2..1c9d06388e83ff7ec28bfbef5a1406dba45e716d 100644 (file)
@@ -146,6 +146,7 @@ public class MDFlowMapping {
     public static def removeFlowInput(Node sourceNode, Flow sourceFlow) {
         val source = flowAdded(sourceFlow);
         val it = new RemoveFlowInputBuilder(source as org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.Flow);
+        node = sourceNode.toNodeRef()
         return it.build();
     }