Skip to content

Commit d759ecb

Browse files
committed
Set out to null on exception
Signed-off-by: Rafael Luis Ibasco <[email protected]>
1 parent 008564f commit d759ecb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/main/java/com/ibasco/agql/core/transport/handlers/MessageInboundDecoder.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.ibasco.agql.core.AbstractRequest;
2020
import com.ibasco.agql.core.NettyChannelContext;
2121
import io.netty.channel.ChannelHandlerContext;
22-
import io.netty.handler.codec.DecoderException;
2322
import io.netty.util.ReferenceCountUtil;
2423

2524
/**
@@ -55,10 +54,9 @@ public final void readMessage(final ChannelHandlerContext ctx, final Object msg)
5554
} else {
5655
baseDebug("REJECTED message of type '{}' (Reason: Rejected by the concrete handler)", msg.getClass().getSimpleName());
5756
}
58-
} catch (DecoderException e) {
59-
throw e;
6057
} catch (Exception e) {
61-
throw new DecoderException(e);
58+
out = null;
59+
throw e;
6260
} finally {
6361
if (out != null) {
6462
if (out != msg)

0 commit comments

Comments
 (0)