testng-team/testng

The GraphOrchestrator afterExecute method should handle null IWorker<T> r parameter

Aperta

#3243 aperta il 6 ott 2025

 (2 commenti) (0 reazioni) (0 assegnatari)Java (1025 fork)github user discovery
Feature: parallelgood first issue

Metriche repository

Star
 (2059 stelle)
Metriche merge PR
 (Merge medio 17h 43m) (7 PR mergiate in 30 g)

Descrizione

In some rare cases when exception occurs during runtime in the TestNGFutureTask in this line https://github.com/testng-team/testng/blob/d50b2ad2d6809d52131a07071fe229b1b901e08c/testng-core/src/main/java/org/testng/internal/thread/graph/TestNGFutureTask.java#L30 then the result remains null. The BiConsumer should handle null first param. It causes NPE and the real exception remains hidden. Just via debug you can find the real problem.

Please fix this.

Guida contributor