Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-572

Set null Long to 0 before dereference in PersistentProvenanceRepository.submitQuery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.0.2
    • 0.1.0
    • Core Framework
    • None

    Description

                      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;
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            MarkLat Mark Latimer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: