Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1697

TypeUtils.getRawType() throws a NullPointerException on Wildcard GenericArrayType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.12.0
    • 3.13.0
    • lang.reflect.*
    • None

    Description

      When calling TypeUtils.getRawType(Type type, Type assigningType), with a GenericArrayType of a WildcardType it crashes with a NPE.

      Minimum viable example attached.

      Attachments

        1. TestClass.java
          0.5 kB
          Jan Arne Sparka

        Activity

          People

            Unassigned Unassigned
            sparkaar Jan Arne Sparka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: