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

MethodUtils.getMatchingAccessibleMethod throws NullPointerException when parameterTypes is null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • None
    • None
    • None
    • Operating System: All
      Platform: PC

    • 12247

    Description

      In release 1.4 and 1.4.1 invoking invokeMethod with the Class[] parameter null
      leads to a NullPointerException in getMatchingAccessibleMethod. This is not
      coherent with the java.lang.Class.getMethod documentation where null Class[]
      parameter is considered like an empty one.

      Workaroud : pass empty array instead of null

      Attachments

        Activity

          People

            Unassigned Unassigned
            gillesgaillard@compuserve.com Gilles Gaillard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: