Fix NPE in OpenSslEngine

This commit is contained in:
Trustin Lee 2014-05-21 20:01:22 +09:00
parent e4e7abc986
commit bbb5ee42b1

View File

@ -765,7 +765,11 @@ public final class OpenSslEngine extends SSLEngine {
if (applicationProtocol == null) { if (applicationProtocol == null) {
applicationProtocol = fallbackApplicationProtocol; applicationProtocol = fallbackApplicationProtocol;
} }
if (applicationProtocol != null) {
this.applicationProtocol = applicationProtocol.replace(':', '_'); this.applicationProtocol = applicationProtocol.replace(':', '_');
} else {
this.applicationProtocol = null;
}
return FINISHED; return FINISHED;
} }