Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2787

ValueMap.getAsBoolean(key, defaultValue) always returns false for non-existing keys, instead of the defaultValue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.7
    • 1.4.8, 1.5-M1
    • wicket
    • None

    Description

      ValueMap.getAsBoolean(key, defaultValue) should check if the provided key actually exists, and if not return the defaultValue. Currently it will delegate to Strings.isTrue(null) which always returns false.

      Attachments

        1. valuemap_1.4.x.patch
          1 kB
          Arthur Bogaart
        2. valuemap_trunk.patch
          1 kB
          Arthur Bogaart

        Activity

          People

            ivaynberg Igor Vaynberg
            a.bogaart Arthur Bogaart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: