Commit 0e5e23df authored by chiaming2000's avatar chiaming2000
Browse files

Fixed debug protocol message dump throws NullPointerException.

parent 824a9e68
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -103,8 +103,12 @@ public class KineticEncoder extends MessageToByteEncoder<KineticMessage> {

				logger.info("outbound protocol message:");
				
				String printMsg = ProtocolMessageUtil.toString(msg,
						value.length);
				int len = 0;
				if (value != null) {
				    len = value.length;
				}
				
				String printMsg = ProtocolMessageUtil.toString(msg, len);

				logger.info(printMsg);
			}