Skip to content

Commit

Permalink
Merge pull request #4895 from inception-project/bugfix/4891-Exception…
Browse files Browse the repository at this point in the history
…-in-sidebar-curation-mode-when-document-level-annotations-exist

#4891 - Exception in sidebar curation mode when document-level annotations exist
  • Loading branch information
reckart authored Jun 23, 2024
2 parents 5f69bc0 + c3724d4 commit 5dfe9f0
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 5dfe9f0

Please sign in to comment.