Skip to content
Snippets Groups Projects
Commit 1a638455 authored by srosse's avatar srosse
Browse files

OO-199: make the function robust

parent bebea46e
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment