axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis Message.java
Date Wed, 18 Feb 2004 13:24:10 GMT
dims        2004/02/18 05:24:10

  Modified:    java/src/org/apache/axis Message.java
  Log:
  Fix for 27028 - NPEX in prg.apache.axis.Message.getContentDesciption
  reported by rune.skjelvik@edb.com (Rune Skjelvik)
  
  Revision  Changes    Path
  1.107     +1 -1      ws-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- Message.java	2 Jan 2004 16:25:03 -0000	1.106
  +++ Message.java	18 Feb 2004 13:24:10 -0000	1.107
  @@ -587,7 +587,7 @@
        */
       public String getContentDescription() {
           String values[] = headers.getHeader(HTTPConstants.HEADER_CONTENT_DESCRIPTION);
  -        if(values.length > 0)
  +        if(values != null && values.length > 0)
               return values[0];
           return null;
       }
  
  
  

Mime
View raw message