Update MRI projects for Aluminium
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / tablefeatures / InstructionsTablePropertySerializer.java
index d58c23c457c72679e7a9af07da84a9d06b229a1b..cf900fb0583398b9b6dc4acd742506ea0b346949 100644 (file)
@@ -18,7 +18,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.Instru
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.TableFeaturesPropType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop.type.Instructions;
 
-public class InstructionsTablePropertySerializer extends AbstractTablePropertySerializer<Instructions> implements SerializerRegistryInjector {
+public class InstructionsTablePropertySerializer extends AbstractTablePropertySerializer<Instructions> implements
+        SerializerRegistryInjector {
 
     private SerializerRegistry registry;
 
@@ -26,7 +27,7 @@ public class InstructionsTablePropertySerializer extends AbstractTablePropertySe
     protected void serializeProperty(final Instructions property, final ByteBuf byteBuf) {
         property
                 .getInstructions()
-                .getInstruction()
+                .nonnullInstruction().values()
                 .stream()
                 .sorted(OrderComparator.build())
                 .map(Instruction::getInstruction)