Commit c8b35780 authored by David Schmidt's avatar David Schmidt

bugfix: IllegalArgumentException occured when NamedEntities had no ID

parent c1f510a2
Pipeline #9749 passed with stages
in 19 minutes and 18 seconds
......@@ -135,12 +135,11 @@ public class NamedEntityDrawingStrategy implements IAnnotationDrawingStrategy {
gc.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
}
String idFeat = anno.getFeatureValueAsString(f);
Feature fMappedId = anno.getType().getFeatureByBaseName("MappedID");
if(anno.getFeatureValueAsString(fMappedId)!=null){
idFeat+=":"+anno.getFeatureValueAsString(fMappedId);
feat+=":"+anno.getFeatureValueAsString(fMappedId);
}
gc.drawString(idFeat, lastRect.x + lastRect.width - 1,
gc.drawString(feat, lastRect.x + lastRect.width - 1,
lastRect.y - FONTSIZE - 7);
}
......
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