Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-554

org.apache.pivot.beans.BeanAdapter doesn't gracefully handle keys that are nulls or empty Strings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.5.1, 2.0
    • Fix Version/s: 2.0
    • Component/s: core-beans
    • Labels:
      None
    • Environment:
      n/a

      Description

      org.apache.pivot.beans.BeanAdapter doesn't gracefully handle keys that are nulls or empty Strings
      java.lang.NullPointerException & java.lang.StringIndexOutOfBoundsException can be thrown for nulls and empty Strings respectively.

        Attachments

        1. BeanAdapter.patch
          4 kB
          Christopher James Bartlett
        2. BeanAdapterPatch.java
          3 kB
          Christopher James Bartlett
        3. BeanAdapterIssue.java
          2 kB
          Christopher James Bartlett

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cbartlett Christopher James Bartlett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: