diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java index c34b88b1e9e..4c3fc823e4a 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/AbstractEndPoint.java @@ -456,6 +456,8 @@ public abstract class AbstractEndPoint extends IdleTimeout implements EndPoint public String toConnectionString() { Connection connection = getConnection(); + if (connection == null) + return "null"; if (connection instanceof AbstractConnection) return ((AbstractConnection)connection).toConnectionString(); return String.format("%s@%x",connection.getClass().getSimpleName(),connection.hashCode());