Commit d66d3e7b authored by David Hoksza's avatar David Hoksza
Browse files

fix not working annotations when one of the annotations has a parameter selected

parent 52a9a187
Pipeline #4109 passed with stage
in 1 minute and 4 seconds
......@@ -339,6 +339,7 @@ public class ModelAnnotator {
*/
protected void annotateModel(Model model, IProgressUpdater progressUpdater,
Map<Class<?>, List<ElementAnnotator>> annotators, Map<Class<?>, List<UserAnnotatorsParam>> annotatorsParams) {
ElementUtils elementUtils = new ElementUtils();
progressUpdater.setProgress(0);
......@@ -362,11 +363,12 @@ public class ModelAnnotator {
List<UserAnnotatorsParam> params = annotatorsParams.get(elementAnnotator.getClass());
if (params != null) {
elementAnnotator.annotateElement(element, params);
} else {
elementAnnotator.annotateElement(element);
}
} else {
elementAnnotator.annotateElement(element);
}
} catch (AnnotatorException e) {
logger.warn(elementUtils.getElementTag(element) + " " + elementAnnotator.getCommonName()
+ " annotation problem: " + e.getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment