From 194943370c053a23eb48018927131a00c8e3ea09 Mon Sep 17 00:00:00 2001 From: Andrey Subbotin Date: Fri, 28 Apr 2017 13:59:56 +0400 Subject: [PATCH] PL-8906 Support Kryo serialization by default in the next platform version --- .../com/haulmont/cuba/security/global/UserSession.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/global/src/com/haulmont/cuba/security/global/UserSession.java b/modules/global/src/com/haulmont/cuba/security/global/UserSession.java index 207425a74c..d9b0f588f4 100644 --- a/modules/global/src/com/haulmont/cuba/security/global/UserSession.java +++ b/modules/global/src/com/haulmont/cuba/security/global/UserSession.java @@ -58,6 +58,14 @@ public class UserSession implements Serializable { protected transient Map localAttributes; + /** + * INTERNAL + * Used only for kryo serialization + */ + public UserSession() { + localAttributes = new ConcurrentHashMap<>(); + } + /** * INTERNAL */