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

Wesley L Lawrence edited comment on NIFI-3175 at 12/9/16 12:03 AM:
-------------------------------------------------------------------

Fix available at; https://github.com/apache/nifi/pull/1311

{code}
Thank you for submitting a contribution to Apache NiFi.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

### For all changes:
- [ Y ] Is there a JIRA ticket associated with this PR? Is it referenced 
     in the commit message?

- [ Y ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number 
you are trying to resolve? Pay particular attention to the hyphen "-" character.

- [ Y ] Has your PR been rebased against the latest commit within the target 
branch (typically master)?

- [ Y ] Is your initial contribution a single, squashed commit?

### For code changes:
- [ Y ] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
- [ Y ] Have you written or updated unit tests to verify your changes?
- [N/A] If adding new dependencies to the code, are these dependencies licensed 
in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? 
- [N/A] If applicable, have you updated the LICENSE file, including the main 
LICENSE file under nifi-assembly?
- [N/A] If applicable, have you updated the NOTICE file, including the main 
NOTICE file found under nifi-assembly?
- [N/A] If adding new Properties, have you added .displayName in addition to 
.name (programmatic access) for each of the new properties?

### For documentation related changes:
- [N/A] Have you ensured that format looks appropriate for the output in which 
it is rendered?

### Note:
Please ensure that once the PR is submitted, you check travis-ci for build 
issues and submit an update to your PR as soon as possible.
{code}


was (Author: wesleylawrence):
Fix available at; https://github.com/Wesley-Lawrence/nifi/tree/NIFI-3175.

Reading through [Contributor 
Guide|https://cwiki.apache.org/confluence/display/NIFI/Contributor+Guide] still.

> ValidateCSV processor throws NullPointerException when printing an empty CSV 
> column
> -----------------------------------------------------------------------------------
>
>                 Key: NIFI-3175
>                 URL: https://issues.apache.org/jira/browse/NIFI-3175
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Wesley L Lawrence
>            Priority: Minor
>
> For example, given a CSV file with the line;
> {code}
> Hello,,World
> {code}
> And the ValidateCSV processor is given the Super-CSV schema of;
> {code}
> Null,Null,Null
> {code}
> And exception such as this will be thrown;
> {code}
> 2016-12-08 16:58:27,061 ERROR [Timer-Driven Process Thread-9] 
> o.a.nifi.processors.standard.ValidateCsv 
> ValidateCsv[id=e05389fa-0158-1000-75dc-d6a79554c96a] 
> ValidateCsv[id=e05389fa-0158-1000-75dc-d6a7955
> 4c96a] failed to process due to java.lang.NullPointerException; rolling back 
> session: java.lang.NullPointerException
> 2016-12-08 16:58:27,062 ERROR [Timer-Driven Process Thread-9] 
> o.a.nifi.processors.standard.ValidateCsv 
> java.lang.NullPointerException: null
>         at 
> org.apache.nifi.processors.standard.ValidateCsv.print(ValidateCsv.java:584) 
> ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.processors.standard.ValidateCsv.access$000(ValidateCsv.java:89)
>  ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.processors.standard.ValidateCsv$1$3.process(ValidateCsv.java:484)
>  ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.repository.StandardProcessSession.append(StandardProcessSession.java:2412)
>  ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.processors.standard.ValidateCsv$1.process(ValidateCsv.java:481)
>  ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2082)
>  ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2053)
>  ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.processors.standard.ValidateCsv.onTrigger(ValidateCsv.java:444)
>  ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>  ~[nifi-api-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
>  [nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
>  [nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
>  [nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
>  [nifi-framework-core-1.1.0.jar:1.1.0]
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_60]
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [na:1.8.0_60]
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  [na:1.8.0_60]
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  [na:1.8.0_60]
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_60]
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_60]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
> {code}



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

Reply via email to