Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-236

Null varargs arguments are being ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0
    • None
    • Core Runtime
    • None
    • OGNL 3.0.6

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dfernandez Daniel Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: