diff --git a/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java b/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java index b3584892a78..aff17475098 100644 --- a/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java +++ b/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java @@ -321,14 +321,14 @@ public List lookupLazyDetails(SourceDocument aDocument, User a var detailGroups = new ArrayList(); for (var aFeature : annotationService.listAnnotationFeature(aLayer)) { if (aFeature.getLinkMode() == LinkMode.WITH_ROLE) { - return emptyList(); + continue; } var vid = VID.parse(aVid.getExtensionPayload()); var representative = predictions.getPredictionByVID(aDocument, vid); if (representative.isEmpty() || !representative.get().getFeature().equals(aFeature.getName())) { - return emptyList(); + continue; } var sao = representative.get(); @@ -340,7 +340,7 @@ public List lookupLazyDetails(SourceDocument aDocument, User a .findFirst(); if (group.isEmpty()) { - return emptyList(); + continue; } var pref = recommendationService.getPreferences(aUser, aDocument.getProject());