nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-572) Set null Long to 0 before dereference in PersistentProvenanceRepository.submitQuery
Date Sun, 03 May 2015 21:26:06 GMT

    [ https://issues.apache.org/jira/browse/NIFI-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14526030#comment-14526030
] 

ASF subversion and git services commented on NIFI-572:
------------------------------------------------------

Commit 018473b352ef5216e8581fa843b1a3a958c51d9b in incubator-nifi's branch refs/heads/develop
from [~MarkLat]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git;h=018473b ]

NIFI-572 possible null dereference in PersistentProvenanceRepository.submitQuery

Signed-off-by: Mark Payne <markap14@hotmail.com>


> 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.1.0
>
>         Attachments: 0001-NIFI-572-possible-null-dereference-in-PersistentProv.patch,
0001-NIFI-573-fix-NPE-in-nifi.sh-and-clean-up-open-stream.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)

Mime
View raw message