Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 40664 invoked from network); 13 Feb 2004 13:42:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 13:42:51 -0000 Received: (qmail 21239 invoked by uid 500); 13 Feb 2004 13:42:47 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 21178 invoked by uid 500); 13 Feb 2004 13:42:46 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 21165 invoked by uid 500); 13 Feb 2004 13:42:46 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 21160 invoked from network); 13 Feb 2004 13:42:46 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 13 Feb 2004 13:42:46 -0000 Received: (qmail 40609 invoked by uid 1758); 13 Feb 2004 13:42:48 -0000 Date: 13 Feb 2004 13:42:48 -0000 Message-ID: <20040213134248.40608.qmail@minotaur.apache.org> From: unico@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl AbstractConfigurableSourceInspector.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 unico 2004/02/13 05:42:48 Modified: src/blocks/repository/java/org/apache/cocoon/components/source/impl AbstractConfigurableSourceInspector.java Log: avoid null namespace Revision Changes Path 1.6 +8 -1 cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java Index: AbstractConfigurableSourceInspector.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/repository/java/org/apache/cocoon/components/source/impl/AbstractConfigurableSourceInspector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- AbstractConfigurableSourceInspector.java 21 Nov 2003 11:39:46 -0000 1.5 +++ AbstractConfigurableSourceInspector.java 13 Feb 2004 13:42:48 -0000 1.6 @@ -168,7 +168,14 @@ * the given type. */ public final boolean handlesProperty(String namespace, String name) { - return m_properties.contains(namespace + "#" + name); + String propname; + if (namespace == null) { + propname = "#" + name; + } + else { + propname = namespace + "#" + name; + } + return m_properties.contains(propname); } /**