GUACAMOLE-839: Merge check for lack of request headers (may be null).

This commit is contained in:
Virtually Nick
2025-04-10 06:25:05 -04:00
committed by GitHub

View File

@@ -133,7 +133,7 @@ public class SSLClientAuthenticationResource extends SSOResource {
private String getHeader(HttpHeaders headers, String name) {
List<String> values = headers.getRequestHeader(name);
if (values.isEmpty())
if (values == null || values.isEmpty())
return null;
return values.get(0);