Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <craig5008@gmail.com>
  • Loading branch information
cwperks committed Jul 26, 2024
1 parent a62b147 commit 39a7a0b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ protected TransportReplicationAction(
) {
super(actionName, actionFilters, transportService.getTaskManager());
this.threadPool = threadPool;
this.tcWrapper = InternalThreadContextWrapper.from(threadPool.getThreadContext());
if (threadPool != null) {
this.tcWrapper = InternalThreadContextWrapper.from(threadPool.getThreadContext());
}
this.transportService = transportService;
this.clusterService = clusterService;
this.indicesService = indicesService;
Expand Down

0 comments on commit 39a7a0b

Please sign in to comment.