You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/10/15 16:14:00 UTC

[jira] [Commented] (SUREFIRE-2202) NullPointerException if super class meets specific condition

    [ https://issues.apache.org/jira/browse/SUREFIRE-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775389#comment-17775389 ] 

ASF GitHub Bot commented on SUREFIRE-2202:
------------------------------------------

asfgit closed pull request #673: [SUREFIRE-2202] - Fixes bug NPE in MethodSelector
URL: https://github.com/apache/maven-surefire/pull/673




> NullPointerException if super class meets specific condition
> ------------------------------------------------------------
>
>                 Key: SUREFIRE-2202
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2202
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: TestNG support
>    Affects Versions: 3.1.2
>            Reporter: Javier A. Ortiz
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 3.2.0
>
>
> Code is throwing a NPE when clazz.getSuperClass() returns null on the previous iteration.
> As per the JavaDocs:
> {code:java}
> If this {@code Class} represents either the {@code Object} class, an interface, a primitive type, or void, then null is returned.{code}
> Current code doesn't handle this case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)