mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 23:15:36 +00:00
NIFI-572 possible null dereference in PersistentProvenanceRepository.submitQuery
Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
fea59e3249
commit
018473b352
@ -1438,9 +1438,10 @@ public class PersistentProvenanceRepository implements ProvenanceEventRepository
|
||||
trimmed = latestList;
|
||||
}
|
||||
|
||||
final Long maxEventId = getMaxEventId();
|
||||
Long maxEventId = getMaxEventId();
|
||||
if (maxEventId == null) {
|
||||
result.getResult().update(Collections.<ProvenanceEventRecord>emptyList(), 0L);
|
||||
maxEventId = 0L;
|
||||
}
|
||||
Long minIndexedId = indexConfig.getMinIdIndexed();
|
||||
if (minIndexedId == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user