commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Fernández (JIRA) <>
Subject [jira] [Created] (OGNL-236) Null varargs arguments are being ignored
Date Mon, 03 Jun 2013 10:22:20 GMT
Daniel Fernández created OGNL-236:

             Summary: Null varargs arguments are being ignored
                 Key: OGNL-236
             Project: Commons OGNL
          Issue Type: Bug
          Components: Core Runtime
    Affects Versions: 3.0
         Environment: OGNL 3.0.6
            Reporter: Daniel Fernández

I have a Java method with this signature:

    public String concatReplaceNulls(String nullValue, Object ... values) {

...which I call from an OGNL expression like:

    #strings.concatReplaceNulls('**', null, 'one', null, 'two')

But from what I can see at the debugger, nullValue comes as "**", which is OK, but "values"
comes as an array of size 2 with values {"one", "two"}, so it seems my null values are completely
ignored and not included in the array. This happens using both literals or variables.

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

View raw message