testng-team/testng

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

開放

#3,243 建立於 2025年10月6日

 (2 則留言) (0 個反應) (0 位負責人)Java (1,025 個分叉)github user discovery
Feature: parallelgood first issue

倉庫指標

星標
 (2,059 顆星)
PR 合併指標
 (平均合併 17小時 43分鐘) (30 天內合併 7 個 PR)

描述

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.

貢獻者指南