We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e49c5 commit 30be4a2Copy full SHA for 30be4a2
vertx-sql-client/src/main/java/io/vertx/sqlclient/impl/pool/ConnectionPool.java
@@ -242,6 +242,10 @@ private void check() {
242
while (waiters.size() > 0) {
243
if (available.size() > 0) {
244
PooledConnection proxy = available.poll();
245
+ if (proxy == null) {
246
+ // available is empty?
247
+ return;
248
+ }
249
Handler<AsyncResult<Connection>> waiter = waiters.poll();
250
waiter.handle(Future.succeededFuture(proxy));
251
} else {
0 commit comments