Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 86868 invoked from network); 12 Jun 2006 20:32:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2006 20:32:43 -0000 Received: (qmail 71944 invoked by uid 500); 12 Jun 2006 20:32:41 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 71806 invoked by uid 500); 12 Jun 2006 20:32:40 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 71795 invoked by uid 99); 12 Jun 2006 20:32:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 13:32:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 13:32:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C22687141FA for ; Mon, 12 Jun 2006 20:31:29 +0000 (GMT) Message-ID: <1287811.1150144289791.JavaMail.jira@brutus> Date: Mon, 12 Jun 2006 20:31:29 +0000 (GMT+00:00) From: "Igor Naumov (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Created: (COCOON-1861) Check for Null URI in LDAPTransformer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Check for Null URI in LDAPTransformer ------------------------------------- Key: COCOON-1861 URL: http://issues.apache.org/jira/browse/COCOON-1861 Project: Cocoon Type: Bug Components: Blocks: Naming Versions: 2.1.8, 2.1.9 Reporter: Igor Naumov Priority: Minor In the LDAPTransformer.java (src\blocks\naming\java\org\apache\cocoon\transformation\LDAPTransformer.java) the URI is not checked for NULL. On some J2EE servers (SAP NetWeaver) the URI passed may be NULL and it causes a NullPointerException. A simple fix is to add a check for NULL URI and just pass through that element: public void startElement(String uri, String name, String raw, Attributes attributes) throws SAXException { + if (uri == null) { + super.startElement(uri, name, raw, attributes); + return; + } if (!uri.equals(my_uri)) { super.startElement(uri, name, raw, attributes); return; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira