cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: svn commit: rev 47047 - in cocoon/trunk/src: blocks/databases/java/org/apache/cocoon/transformation blocks/linkrewriter/java/org/apache/cocoon/transformation blocks/mail/java/org/apache/cocoon/mail/transformation blocks/portal/java/org/apache/cocoon/portal/coplets/basket blocks/portal/java/org/apache/cocoon/portal/transformation blocks/repository/java/org/apache/cocoon/transformation blocks/session-fw/java/org/apache/cocoon/webapps/session/transformation java/org/apache/cocoon/transformation
Date Wed, 22 Sep 2004 17:16:00 GMT
Andreas Hartmann wrote:
> vgritsenko@apache.org wrote:
> 
> [...]
> 
>> AbstractSAXTransformer cleanup:
>> Make sure namespaceURI is not null
> 
> 
> 
> http://www.saxproject.org/?selected=namespaces
> 
> If I understand this correctly, a null URI should be used
> to denote elements without a namespace (I used to handle
> it like that).
> 
> I just updated the Cocoon trunk and got a NPE in
> AbstractSAXTransformer.endPrefixMapping():
> 
>         if (namespaceURI.equals(uri)) {

Just in case someone is faced with the same problem:

It happened because a transformer did not call
super.setup() when overriding setup(). That's why
the namespaceURI field was not initialized.

-- Andreas


Mime
View raw message