Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2202

NullPointerException if super class meets specific condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0, 3.2.1
    • TestNG support
    • None

    Description

      Code is throwing a NPE when clazz.getSuperClass() returns null on the previous iteration.

      As per the JavaDocs:

      If this {@code Class} represents either the {@code Object} class, an interface, a primitive type, or void, then null is returned.

      Current code doesn't handle this case.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              javydreamercsw Javier A. Ortiz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: