diff --git a/src/main/java/org/olat/course/condition/interpreter/GetUserPropertyFunction.java b/src/main/java/org/olat/course/condition/interpreter/GetUserPropertyFunction.java index 94e1474d08803fd65c48c041802c40e27eb6b91b..fb8c65294f6dc320034c94568669ba88c4653756 100644 --- a/src/main/java/org/olat/course/condition/interpreter/GetUserPropertyFunction.java +++ b/src/main/java/org/olat/course/condition/interpreter/GetUserPropertyFunction.java @@ -81,6 +81,9 @@ public class GetUserPropertyFunction extends AbstractFunction { } Identity ident = getUserCourseEnv().getIdentityEnvironment().getIdentity(); + if(ident == null) { + return defaultValue(); + } User user = ident.getUser(); String propertyName = (String) inStack[0];