Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-19

[configuration] DataConfiguration.getXXXArray() fails on empty values

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      The methods returning a primitive array in DataConfiguration do not work with
      empty properties. They throw a ConversionException instead of returning an empty
      array.

        Activity

        Hide
        Emmanuel Bourg added a comment -

        Created an attachment (id=14256)
        Patch to return the default value when a list/array is requested from an empty
        String value

        Show
        Emmanuel Bourg added a comment - Created an attachment (id=14256) Patch to return the default value when a list/array is requested from an empty String value
        Hide
        Emmanuel Bourg added a comment -

        Patch applied

        Show
        Emmanuel Bourg added a comment - Patch applied

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Bourg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development