Add tests to check returning null to pool
This commit is contained in:
@@ -45,6 +45,9 @@ public abstract class Pool<T> {
|
||||
}
|
||||
|
||||
public void returnResourceObject(final T resource) {
|
||||
if (resource == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
internalPool.returnObject(resource);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user