[ https://issues.apache.org/jira/browse/NIFI-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16126272#comment-16126272 ]
ASF subversion and git services commented on NIFI-4286: ------------------------------------------------------- Commit 50f22162b06df99094fb8ac99e6520a2ad1d9d92 in nifi's branch refs/heads/master from [~mattyb149] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=50f2216 ] NIFI-4286: Fix NPE in GenerateTableFetch when Partition Size = 0 This closes #2078. Signed-off-by: Bryan Bende <bbe...@apache.org> > GenerateTableFetch with Partition Size of 0 produces NPE > -------------------------------------------------------- > > Key: NIFI-4286 > URL: https://issues.apache.org/jira/browse/NIFI-4286 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.3.0 > Reporter: Bryan Bende > Assignee: Matt Burgess > Priority: Minor > > The description of partition size says "A value of zero indicates that a > single FlowFile is to be generated whose SQL statement will fetch all rows in > table". > If you set the partition size to 0 the processor will get an NPE at these two > lines: > long limit = partitionSize == 0 ? null : partitionSize; > long offset = partitionSize == 0 ? null : i * partitionSize; -- This message was sent by Atlassian JIRA (v6.4.14#64029)