mirror of https://github.com/apache/nifi.git
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…
Reference in New Issue