closes #1496
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
## [Unreleased]
+### Fixed
+
+- Fix null exception regression: [#1496](https://github.com/poolifier/poolifier/issues/1496).
+
## [3.1.20] - 2024-02-11
### Fixed
) {
workerInfo.stealing = false
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- for (const taskName of this.workerNodes[workerNodeKey].info
- .taskFunctionNames!) {
+ for (const taskName of workerInfo.taskFunctionNames!) {
this.resetTaskSequentiallyStolenStatisticsTaskFunctionWorkerUsage(
workerNodeKey,
taskName
workerNodeKey: number,
message: MessageValue<Data>
): void {
- this.workerNodes[workerNodeKey].worker.send({
+ this.workerNodes[workerNodeKey]?.worker.send({
...message,
workerId: this.getWorkerInfo(workerNodeKey)?.id
} satisfies MessageValue<Data>)
message: MessageValue<Data>,
transferList?: TransferListItem[]
): void {
- this.workerNodes[workerNodeKey].messageChannel?.port1.postMessage(
+ this.workerNodes[workerNodeKey]?.messageChannel?.port1.postMessage(
{
...message,
workerId: this.getWorkerInfo(workerNodeKey)?.id