diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/DecodeHandler.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/DecodeHandler.java index 050dc78ad21..a342c4b757e 100644 --- a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/DecodeHandler.java +++ b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/DecodeHandler.java @@ -52,7 +52,7 @@ public void received(Channel channel, Object message) throws RemotingException { } private void decode(Object message) { - if (message != null && message instanceof Decodeable) { + if (message instanceof Decodeable) { try { ((Decodeable) message).decode(); if (log.isDebugEnabled()) {