Skip to content

Commit 6f89e26

Browse files
llingllinggit
authored andcommitted
check if getCallerThreadPoolExecutor is null or not #1265
1 parent c07137d commit 6f89e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/dataservices/impl/ExecEndpointImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public Boolean call() throws InterruptedException{
254254
submitTask(this);
255255
}
256256
else {
257-
if (aliveCallContextCount.decrementAndGet() == 0) {
257+
if (aliveCallContextCount.decrementAndGet() == 0 && getCallerThreadPoolExecutor() != null) {
258258
getCallerThreadPoolExecutor().shutdown();
259259
}
260260
}

0 commit comments

Comments
 (0)