RED-4218: Do not perform surrounding text analysis for resize redactions with value = null
This commit is contained in:
parent
166a30bcc9
commit
3c09f0a63f
@ -65,7 +65,7 @@ public class ManualRedactionSurroundingTextService {
|
|||||||
var resizeItty = manualRedactions.getResizeRedactions().iterator();
|
var resizeItty = manualRedactions.getResizeRedactions().iterator();
|
||||||
while (resizeItty.hasNext()) {
|
while (resizeItty.hasNext()) {
|
||||||
var manualResizeRedaction = resizeItty.next();
|
var manualResizeRedaction = resizeItty.next();
|
||||||
if (sectionContainsEntry(sectionArea, manualResizeRedaction.getPositions())) {
|
if (manualResizeRedaction.getValue() != null && sectionContainsEntry(sectionArea, manualResizeRedaction.getPositions())) {
|
||||||
var surroundingText = findSurroundingText(sectionText, manualResizeRedaction.getValue(), manualResizeRedaction.getPositions());
|
var surroundingText = findSurroundingText(sectionText, manualResizeRedaction.getValue(), manualResizeRedaction.getPositions());
|
||||||
manualResizeRedaction.setTextBefore(surroundingText.getLeft());
|
manualResizeRedaction.setTextBefore(surroundingText.getLeft());
|
||||||
manualResizeRedaction.setTextAfter(surroundingText.getRight());
|
manualResizeRedaction.setTextAfter(surroundingText.getRight());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user