RED-1539: Fixed missing textBefore & textAfter on reanalyis that leads to wrong changelog
This commit is contained in:
parent
925b2a274c
commit
143877ff2d
@ -172,7 +172,7 @@ public class ReanalyzeService {
|
||||
|
||||
Set<Entity> entities = entityRedactionService.findEntities(reanalysisSection.getSearchableText(), reanalysisSection
|
||||
.getHeadline(), reanalysisSection.getSectionNumber(), dictionary, false);
|
||||
if (reanalysisSection.getCellStarts() != null) {
|
||||
if (reanalysisSection.getCellStarts() != null && !reanalysisSection.getCellStarts().isEmpty()) {
|
||||
surroundingWordsService.addSurroundingText(entities, reanalysisSection.getSearchableText(), dictionary, reanalysisSection
|
||||
.getCellStarts());
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user