You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mm...@apache.org on 2001/06/15 19:05:11 UTC

cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf MessageBytes.java

mmanders    01/06/15 10:05:10

  Modified:    util/java/org/apache/tomcat/util/buf MessageBytes.java
  Log:
  Updated setString to just return if the string passed in is a null.  This prevents problems later on when we try and access the string member.
  
  Revision  Changes    Path
  1.3       +2 -0      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/MessageBytes.java
  
  Index: MessageBytes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/MessageBytes.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageBytes.java	2001/05/29 06:22:53	1.2
  +++ MessageBytes.java	2001/06/15 17:05:09	1.3
  @@ -163,6 +163,8 @@
   
       public void setString( String s ) {
   	recycle();
  +        if (s == null)
  +            return;
   	strValue=s;
   	hasStrValue=true;
   	type=T_STR;