Skip to content

Commit

Permalink
Update BulkRedactor.java
Browse files Browse the repository at this point in the history
Fixed null pointer exception which would occur when redacting named entities.  This was because the the relevant item was being associated to the wrong collection of  NuixImageAnnotationRegion objects.
  • Loading branch information
JuicyDragon committed Jun 14, 2019
1 parent 4edfacd commit 3e530a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public List<NuixImageAnnotationRegion> findAndMarkup(Case nuixCase, BulkRedactor
Set<String> entityExpressions = entityValues.stream().map(v -> BulkRedactorSettings.phraseToExpression(v)).collect(Collectors.toSet());
List<NuixImageAnnotationRegion> entityRegions = findExpressionsInPdfFile(tempPdf, entityExpressions);
if(entityRegions.size() > 0) {
for(NuixImageAnnotationRegion region : regions) {
for(NuixImageAnnotationRegion region : entityRegions) {
region.setItem(item);
}
allFoundRegions.addAll(regions);
Expand Down

0 comments on commit 3e530a6

Please sign in to comment.