Added guard in case of null next protocol.

This commit is contained in:
Simone Bordet 2012-11-15 15:29:03 +01:00
parent a736ebc062
commit eda558aaa8
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class NextProtoNegoServerConnection extends AbstractConnection implements
public void protocolSelected(String protocol)
{
LOG.debug("{} protocol selected {}", this, protocol);
nextProtocol = protocol;
nextProtocol = protocol != null ? protocol : defaultProtocol;
NextProtoNego.remove(engine);
}
}