Skip to content

Commit 07af5ba

Browse files
authored
Merge pull request #648 from nielsavonds/master
Fixed #647 - Crash when using CookieSessionManager with invalid cookie
2 parents cd4b43e + 3574efd commit 07af5ba

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)