diff --git a/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/entities/AuthenticatedClientSessionEntity.java b/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/entities/AuthenticatedClientSessionEntity.java index 2d43cfae43..671aff7951 100644 --- a/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/entities/AuthenticatedClientSessionEntity.java +++ b/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/entities/AuthenticatedClientSessionEntity.java @@ -152,9 +152,9 @@ public class AuthenticatedClientSessionEntity extends SessionEntity { AuthenticatedClientSessionEntity(String realmId, String authMethod, String redirectUri, int timestamp, String action, Map notes, UUID id) { super(realmId); this.authMethod = authMethod; - this.redirectUri = redirectUri; + this.redirectUri = Marshalling.emptyStringToNull(redirectUri); this.timestamp = timestamp; - this.action = action; + this.action = Marshalling.emptyStringToNull(action); this.notes = notes; this.id = id; }