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 */