We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ae65d4 + 5c6d7eb commit 9db7ff1Copy full SHA for 9db7ff1
src/java/com/wolfssl/WolfSSLSession.java
@@ -4147,10 +4147,15 @@ public byte[] getSNIRequestBytes(byte type) throws IllegalStateException {
4147
* active
4148
*/
4149
public String getSNIRequest(byte type) throws IllegalStateException {
4150
+ byte[] request;
4151
4152
confirmObjectIsActive();
4153
+ request = getSNIRequestBytes(type);
4154
+ if (request != null){
4155
+ return new String(request, StandardCharsets.UTF_8);
4156
+ }
4157
- return new String(getSNIRequestBytes(type), StandardCharsets.UTF_8);
4158
+ return null;
4159
}
4160
4161
/**
0 commit comments