Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-262

getPropertyDescriptor() and setNestedProperty() methods are inconsistent with getNestedProperty() method - should throw a NestedNullException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • Bean / Property Utils
    • None

    Description

      getNestedProperty() method it throws a NestedNullException if a bean in the nested expression is null - getPropertyDescriptor() and setNestedProperty() methods don't, they just throw an IllegalArgumentException.

      Switching to NestedNullException is a compatible change since IllegalArgumentException is a super class of NestedNullException.

      Attachments

        Activity

          People

            niallp Niall Pemberton
            niallp Niall Pemberton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: