Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0E599635 for ; Tue, 21 Feb 2012 09:43:58 +0000 (UTC) Received: (qmail 41825 invoked by uid 500); 21 Feb 2012 09:43:58 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 41609 invoked by uid 500); 21 Feb 2012 09:43:57 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 41595 invoked by uid 99); 21 Feb 2012 09:43:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 09:43:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 09:43:56 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2A792331B47 for ; Tue, 21 Feb 2012 09:43:36 +0000 (UTC) Date: Tue, 21 Feb 2012 09:43:36 +0000 (UTC) From: "Filippo Ortolan (Created) (JIRA)" To: java-dev@axis.apache.org Message-ID: <1042317017.5248.1329817416175.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (RAMPART-358) Possible NullPointerException in RampartEngine.isSecurityFault(RampartMessageData) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Possible NullPointerException in RampartEngine.isSecurityFault(RampartMessageData) ---------------------------------------------------------------------------------- Key: RAMPART-358 URL: https://issues.apache.org/jira/browse/RAMPART-358 Project: Rampart Issue Type: Bug Components: rampart-core Reporter: Filippo Ortolan Fix For: 1.6.2 in RampartEngine class I get a NullPointerException in line 369 (method: isSecurityFault). Seems that this line: if (faultCode.getTextAsQName().getNamespaceURI().equals(WSConstants.WSSE_NS)) { return true; } throws the exception because getTextAsQName() can return null and this should be handled. Solution: QName faultCodeQName = faultCode.getTextAsQName(); if (faultCodeQName == null) { // handle exception return false; // ? } else { if (faultCodeQName.getNamespaceURI.equals(WSConstants.WSSE_NS)) { return true; } } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org