Commit 090ff690 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

make sure that source is always defined

parent ed638c96
Pipeline #54724 passed with stage
in 16 minutes and 58 seconds
......@@ -426,7 +426,11 @@ public abstract class ElementAnnotator extends CachableInterface implements IEle
public LogMarker getLogMarker(final ProjectLogEntryType type) {
LogMarker result = new LogMarker(type, originalBioEntity);
result.getEntry().setSource(ElementAnnotator.this.getElementAnnotatorInterface().getSimpleName());
Class<?> clazz = ElementAnnotator.this.getElementAnnotatorInterface();
if (clazz == null) {
clazz = this.getClass();
}
result.getEntry().setSource(clazz.getSimpleName());
return result;
}
......
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