You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Graciously return either null or a NoOp retry analizer.
Actual behavior
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "this.m_retryAnalyzerClass" is null
at org.testng.internal.BaseTestMethod.getRetryAnalyzerConsideringMethodParameters(BaseTestMethod.java:828)
at org.testng.internal.BaseTestMethod.getRetryAnalyzer(BaseTestMethod.java:693)
As you can see in the code below if m_retryAnalyzerClass is null a NPE will be thrown in line 828.
Is the issue reproducible on runner?
Shell
Maven
Gradle
Ant
Eclipse
IntelliJ
NetBeans
Test case sample
Please, share the test case (as small as possible) which shows the issue
Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.
The text was updated successfully, but these errors were encountered:
In addition to sharing a sample, please also add the following details:
TestNG version being used.
JDK version being used.
How was the test run (IDE/Build Tools)?
How does your build file (pom.xml | build.gradle | build.gradle.kts) look like ?
It would be better if you could share a sample project that can be directly used to reproduce the problem.
Reply to this issue when all information is provided, thank you.
Can't share due to proprietary things in it.
Sadly I was unable to reproduce outside of our proprietary code how that variable ends up being null but it started happening when moving from 7.10.0
TestNG Version
Expected behavior
Graciously return either null or a NoOp retry analizer.
Actual behavior
java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "this.m_retryAnalyzerClass" is null
As you can see in the code below if m_retryAnalyzerClass is null a NPE will be thrown in line 828.
Is the issue reproducible on runner?
Test case sample
Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.
The text was updated successfully, but these errors were encountered: