fixed reanalyse condition

This commit is contained in:
Timo 2021-04-21 18:11:58 +03:00
parent 567bb00377
commit c1d5be8f63

View File

@ -84,7 +84,7 @@ public class ReanalyzeService {
var text = redactionStorageService.getText(analyzeRequest.getProjectId(), analyzeRequest.getFileId());
// not yet ready for reanalysis
if (text == null || text.getNumberOfPages() == 0) {
if (redactionLog == null || text == null || text.getNumberOfPages() == 0) {
return analyze(analyzeRequest);
}