Issue #6654 - Fix NPEs from bad Servlet API use

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2021-08-23 16:01:32 -05:00
parent 401f1959d2
commit 32e6698f0b
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ public class ServerUpgradeRequest
.map(c -> new HttpCookie(c.getName(), c.getValue()))
.collect(Collectors.toList());
}
else
{
cookies = List.of();
}
}
return cookies;