NULL Pointer exception in ObjectPool.java
Brought to you by:
houyunf
ObjectPool will throw a NULL pointer exception.
It's at line 324
if ((now - value.getLastUsedTime()) >=
(poolInfo.getUserTimeout() * 1000L)) ||
value.isFailed()) {
It should be something like
if (value != null && (((now - value.getLastUsedTime())
>= (poolInfo.getUserTimeout() * 1000L)) ||
value.isFailed())) {
Note that the variable "value" can be null !!!!!!!!
If it's not supposed to be null, then we have a problem
because it was null !!