Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 666 invoked from network); 25 Apr 2008 12:03:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 12:03:08 -0000 Received: (qmail 73234 invoked by uid 500); 25 Apr 2008 12:03:09 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 73216 invoked by uid 500); 25 Apr 2008 12:03:09 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 73205 invoked by uid 99); 25 Apr 2008 12:03:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 05:03:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of w.baran@amg.net.pl designates 91.193.144.104 as permitted sender) Received: from [91.193.144.104] (HELO mx.amg.net.pl) (91.193.144.104) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 12:02:26 +0000 Received: id 1JpMdT-0003XO-8J for issues@cxf.apache.org; Fri, 25 Apr 2008 14:02:39 +0200 From: Wojciech Baran Organization: AMG.net To: issues@cxf.apache.org Subject: NullPointerException in JbiConduitOutputStream Date: Fri, 25 Apr 2008 13:02:17 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804251402.17414.w.baran@amg.net.pl> X-Virus-Checked: Checked by ClamAV on apache.org When MessageExchange contains no fault but error this code causes NPE: NormalizedMessage outMsg = ((InOut)xchng).getOutMessage(); Source content = null; if (outMsg != null) { content = outMsg.getContent(); } else { content = ((InOut)xchng).getFault().getContent(); } There should be some checking for error if there is no fault present.