NIFI-572 possible null dereference in PersistentProvenanceRepository.submitQuery

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Mark Latimer 2015-05-02 12:18:51 +01:00 committed by Mark Payne
parent fea59e3249
commit 018473b352
1 changed files with 2 additions and 1 deletions

View File

@ -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) {