Skip to content

Commit

Permalink
#4891 - Exception in sidebar curation mode when document-level annota…
Browse files Browse the repository at this point in the history
…tions exist

- Skip over non-text-level annotations while rendering
  • Loading branch information
reckart committed Jun 22, 2024
1 parent 6be5dcf commit c3724d4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import org.apache.uima.cas.CAS;
import org.apache.uima.cas.text.AnnotationFS;
import org.apache.uima.jcas.tcas.Annotation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
Expand Down Expand Up @@ -168,6 +169,10 @@ public void render(VDocument aVdoc, RenderRequest aRequest)

for (var cfg : cfgSet.getConfigurations()) {
var fs = cfg.getRepresentative(casDiff.getCasMap());
if (!(fs instanceof Annotation)) {
continue;
}

var user = cfg.getRepresentativeCasGroupId();

// We need to pass in *all* the annotation features here because we also to that in
Expand Down

0 comments on commit c3724d4

Please sign in to comment.