Skip to content

Commit

Permalink
npe
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangd committed Oct 9, 2024
1 parent 12f4180 commit d93212d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onResponse(@Nullable T result) {

@Override
public void onFailure(Exception e) {
assert EsExecutors.executorName(Thread.currentThread()).equals(ThreadPool.Names.GENERIC) || assertCompleteAllowed();
assert ThreadPool.Names.GENERIC.equals(EsExecutors.executorName(Thread.currentThread())) || assertCompleteAllowed();
if (sync.setException(Objects.requireNonNull(e))) {
done(false);
}
Expand Down

0 comments on commit d93212d

Please sign in to comment.