X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflowj%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2FOFError.java;h=361a03b92647f61e51f792c38db0010ee245c0d4;hb=refs%2Fchanges%2F24%2F1124%2F4;hp=74e39b225cc58cd312dab0270c428211a819b2b6;hpb=42210c03b0a4c54706320ba9f55794c0abd4d201;p=controller.git diff --git a/third-party/openflowj/src/main/java/org/openflow/protocol/OFError.java b/third-party/openflowj/src/main/java/org/openflow/protocol/OFError.java index 74e39b225c..361a03b926 100644 --- a/third-party/openflowj/src/main/java/org/openflow/protocol/OFError.java +++ b/third-party/openflowj/src/main/java/org/openflow/protocol/OFError.java @@ -128,10 +128,11 @@ public class OFError extends OFMessage implements OFMessageFactoryAware { // OVS apparently sends partial messages in errors // need to be careful of that AND can't use data.limit() as // a packet boundary because there could be more data queued - if (messages.size() > 0) + if (messages.size() > 0) { return messages.get(0); - else + } else { return null; + } } /**