Fixed NPE in debug log
This commit is contained in:
parent
6ad6b82883
commit
9e3d79bede
|
@ -409,7 +409,11 @@ public class PoolingHttpClientConnectionManager
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("{} connection is not kept alive(isConsistent:{})", ConnPoolSupport.getId(endpoint), conn.isConsistent());
|
if (conn != null && !conn.isConsistent()) {
|
||||||
|
LOG.debug("{} connection is in an inconsistent state and cannot be kept alive)", ConnPoolSupport.getId(endpoint));
|
||||||
|
} else {
|
||||||
|
LOG.debug("{} connection is not kept alive)", ConnPoolSupport.getId(endpoint));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (final RuntimeException ex) {
|
} catch (final RuntimeException ex) {
|
||||||
|
|
Loading…
Reference in New Issue