Add bounds check

pull/22/merge
Brett Wooldridge 11 years ago
parent 561d6f05fd
commit 29db4359f4

@ -462,7 +462,7 @@ public final class HikariPool implements HikariPoolMBean
{
int total = totalConnections.get();
int idle = idleConnectionCount.get();
LOGGER.debug("{}Pool stats (total={}, inUse={}, avail={})", (prefix != null ? prefix[0] : ""), total, total - idle, idle);
LOGGER.debug("{}Pool stats (total={}, inUse={}, avail={})", (prefix != null && prefix.length > 0? prefix[0] : ""), total, total - idle, idle);
}
/**

Loading…
Cancel
Save