You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Mark Latimer (JIRA)" <ji...@apache.org> on 2015/05/02 13:21:05 UTC
[jira] [Updated] (NIFI-572) Set null Long to 0 before dereference
in PersistentProvenanceRepository.submitQuery
[ https://issues.apache.org/jira/browse/NIFI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Latimer updated NIFI-572:
------------------------------
Attachment: 0001-NIFI-572-possible-null-dereference-in-PersistentProv.patch
> 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
> Fix For: 0.2.0
>
> Attachments: 0001-NIFI-572-possible-null-dereference-in-PersistentProv.patch
>
>
> {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)