fixed NPE
This commit is contained in:
parent
38ed95ea94
commit
082027f7b6
@ -72,12 +72,12 @@ public class AnalysisFlagsCalculationService {
|
||||
}
|
||||
|
||||
var lastChange = entry.getChanges().isEmpty() ? null : entry.getChanges().get(entry.getChanges().size() - 1);
|
||||
if (lastChange != null && lastChange.getDateTime() != null &&
|
||||
!entry.getPositions().isEmpty() && viewedPages.get(entry.getPositions().get(0).getPage()).isBefore(lastChange.getDateTime())) {
|
||||
|
||||
var viewedPage = entry.getPositions().isEmpty() ? null : viewedPages.get(entry.getPositions().get(0).getPage());
|
||||
if (lastChange != null && lastChange.getDateTime() != null && viewedPage != null && viewedPage.isBefore(lastChange.getDateTime())) {
|
||||
hasUpdates = true;
|
||||
}
|
||||
|
||||
|
||||
if (hasRedactions && hasHints && hasSuggestions && hasImages && hasComments && hasUpdates) {
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user