Fixed toConnectionString() to avoid NPE.
This commit is contained in:
parent
d841dba997
commit
7547fc4b29
|
@ -307,12 +307,13 @@ public class SslConnection extends AbstractConnection
|
||||||
b = _decryptedInput;
|
b = _decryptedInput;
|
||||||
int di=b==null?-1:b.remaining();
|
int di=b==null?-1:b.remaining();
|
||||||
|
|
||||||
|
Connection connection = _decryptedEndPoint.getConnection();
|
||||||
return String.format("%s@%x{%s,eio=%d/%d,di=%d}=>%s",
|
return String.format("%s@%x{%s,eio=%d/%d,di=%d}=>%s",
|
||||||
getClass().getSimpleName(),
|
getClass().getSimpleName(),
|
||||||
hashCode(),
|
hashCode(),
|
||||||
_sslEngine.getHandshakeStatus(),
|
_sslEngine.getHandshakeStatus(),
|
||||||
ei,eo,di,
|
ei,eo,di,
|
||||||
((AbstractConnection)_decryptedEndPoint.getConnection()).toConnectionString());
|
connection instanceof AbstractConnection ? ((AbstractConnection)connection).toConnectionString() : connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DecryptedEndPoint extends AbstractEndPoint
|
public class DecryptedEndPoint extends AbstractEndPoint
|
||||||
|
|
Loading…
Reference in New Issue