We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4856f commit 053241cCopy full SHA for 053241c
dd-java-agent/instrumentation/testng/src/main/java/datadog/trace/instrumentation/testng/TestNGUtils.java
@@ -216,6 +216,9 @@ public static boolean wasRetried(ITestResult result) {
216
217
public static IRetryAnalyzer getRetryAnalyzer(ITestResult result) {
218
ITestNGMethod method = result.getMethod();
219
+ if (method == null) {
220
+ return null;
221
+ }
222
IRetryAnalyzer analyzer = METHOD_HANDLES.invoke(TEST_METHOD_GET_RETRY_ANALYZER, method, result);
223
if (analyzer != null) {
224
return analyzer;
0 commit comments