Mark Latimer created NIFI-572:
---------------------------------

             Summary: Set null Long to 0 before dereference in 
PersistentProvenanceRepository.submitQuery 
                 Key: NIFI-572
                 URL: https://issues.apache.org/jira/browse/NIFI-572
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 0.0.2
            Reporter: Mark Latimer
            Priority: Trivial



{code}
                final Long maxEventId = getMaxEventId();
                if (maxEventId == null) {   // maxEventId may be null
                    
result.getResult().update(Collections.<ProvenanceEventRecord>emptyList(), 0L);
                }

                ...
                // null maybe dereferenced
                final long totalNumDocs = maxEventId - minIndexedId;

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to