Skip to content
Snippets Groups Projects
Commit b22b98f8 authored by Andreas Parschalk's avatar Andreas Parschalk
Browse files

openolat#214: NPE when copying structure node with expert rule

parent 71695a57
No related branches found
No related tags found
No related merge requests found
......@@ -145,13 +145,14 @@ public class AbstractCourseNodeCopyConfigurator implements ICourseNodeCopyConfig
}
protected String replaceIdsInCondition(String condition) {
if (condition != null) {
condition = KeyAndNameConverter.convertExpressionKeyToKey(condition, courseEnvMapper);
condition = KeyAndNameConverter.convertExpressionKeyToKey(condition, courseEnvMapper);
for (String nodeSourceId : courseEnvMapper.getNodeSourceIds()) {
condition = condition.replaceAll(
"\"" + nodeSourceId + "\"",
"\"" + courseEnvMapper.getNodeTargetIdent(nodeSourceId) + "\"");
for (String nodeSourceId : courseEnvMapper.getNodeSourceIds()) {
condition = condition.replaceAll(
"\"" + nodeSourceId + "\"",
"\"" + courseEnvMapper.getNodeTargetIdent(nodeSourceId) + "\"");
}
}
return condition;
}
......
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