Skip to content

Commit 3574efd

Browse files
author
Niels Avonds
committed
Fixed #647 - Crash when using CookieSessionManager with invalid cookie
1 parent b0b7bac commit 3574efd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jooby/src/main/java/org/jooby/internal/CookieSessionManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public Definition cookie() {
100100

101101
private Map<String, String> attributes(final String raw) {
102102
String unsigned = Cookie.Signature.unsign(raw, secret);
103+
if (unsigned == null) {
104+
return Collections.emptyMap();
105+
}
103106
return Cookie.URL_DECODER.apply(unsigned);
104107
}
105108

0 commit comments

Comments
 (0)