Jetty9 - Prevented NPE in case the connection cannot be created.

This commit is contained in:
Simone Bordet 2012-08-07 17:28:54 +02:00
parent d40170001a
commit cac1c933c3

View File

@ -496,7 +496,9 @@ public abstract class SelectorManager extends AbstractLifeCycle implements Dumpa
public void destroyEndPoint(EndPoint endPoint)
{
LOG.debug("Destroyed {}", endPoint);
connectionClosed(endPoint.getConnection());
Connection connection = endPoint.getConnection();
if (connection != null)
connectionClosed(connection);
endPointClosed(endPoint);
}