<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
It is to prevent a NullPointerException when calling getBytes() on the String instance.<div><br></div><div>-Nicolas</div><div><br><br>&gt; From: mmcgrady@topiatechnology.com<br>&gt; To: netty-users@lists.jboss.org<br>&gt; Subject: Why use String.valueOf(msg) in StringEncoder?<br>&gt; Date: Thu, 6 Aug 2009 10:58:40 -0700<br>&gt; <br>&gt; If there a reason why encoding uses String.valueOf(msg) in  <br>&gt; StringEncoder instead of just msg?  I cannot see the value of,  <br>&gt; valueOf, pun intended.<br>&gt; <br>&gt; Mike<br>&gt; <br>&gt; Mike McGrady<br>&gt; Principal Investigator AF081-028 AFRL SBIR<br>&gt; Senior Engineer<br>&gt; Topia Technology, Inc.<br>&gt; 1.253.720.3365<br>&gt; mmcgrady@topiatechnology.com<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; netty-users mailing list<br>&gt; netty-users@lists.jboss.org<br>&gt; https://lists.jboss.org/mailman/listinfo/netty-users<br></div></body>
</html>