cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Meyer (JIRA)" <>
Subject [jira] Created: (COCOON-1785) I18nMessage - null parameter values causes NPE
Date Tue, 28 Feb 2006 16:48:42 GMT
I18nMessage - null parameter values causes NPE

         Key: COCOON-1785
     Project: Cocoon
        Type: Bug
  Components: Blocks: Forms  
    Versions: 2.1.8, 2.1.9-dev (current SVN)    
    Reporter: Eric Meyer
 Attachments: I18nMessageNPE.txt

Putting a null in a parameter value causes an NPE when creating the SAX events

	at org.apache.cocoon.forms.util.I18nMessage.toSAX(
	at org.apache.cocoon.forms.validation.ValidationError.generateSaxFragment(
	at org.apache.cocoon.forms.formmodel.Field.generateItemSaxFragment(
	at org.apache.cocoon.forms.formmodel.AbstractWidget.generateSaxFragment(
	at org.apache.cocoon.forms.generation.JXMacrosHelper.generateWidget(

Note: this NPE then causes the Ajax transformer to go wonky for all users in all sessions.
I'm still digging into that one.

I am attaching a patch (license granted to ASF)  that allows null parameter values (using
String.valueOf(parameters[i]) so that nulls are turned into "null".

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message