Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 27725 invoked from network); 18 Feb 2004 13:24:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Feb 2004 13:24:14 -0000 Received: (qmail 34842 invoked by uid 500); 18 Feb 2004 13:24:11 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 34586 invoked by uid 500); 18 Feb 2004 13:24:08 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 34572 invoked from network); 18 Feb 2004 13:24:08 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 18 Feb 2004 13:24:08 -0000 Received: (qmail 27698 invoked by uid 1203); 18 Feb 2004 13:24:10 -0000 Date: 18 Feb 2004 13:24:10 -0000 Message-ID: <20040218132410.27697.qmail@minotaur.apache.org> From: dims@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/src/org/apache/axis Message.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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; }