Appendium / flatpack

CSV/Tab Delimited and Fixed Length Parser and Writer
http://flatpack.sf.net
Apache License 2.0
57 stars 20 forks source link

Error executing LargeDelimitedWithPZMap in package package net.sf.flatpack.examples.largedataset.delimiteddynamiccolumns #14

Closed rahulsbz closed 9 years ago

rahulsbz commented 9 years ago

Hello Team,

While executing the LargeDelimitedWithPZMap I get the following Error "java.lang.NullPointerException at net.sf.flatpack.DefaultDataSet.getString"

It appears that the DefaultDataSet" currentRecord is not set on DefaultDataSet object when ds.next() is called on BuffReaderDataSet

Thanks, Rahul

benoitx commented 9 years ago

Hi

Could you provide a test case please? Many thanks B


Important Notice This communication contains information that is considered confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and delete the original

On 10 Jul 2015, at 23:42, rahulsbz notifications@github.com wrote:

Hello Team,

While executing the LargeDelimitedWithPZMap I get the following Error "java.lang.NullPointerException at net.sf.flatpack.DefaultDataSet.getString"

It appears that the DefaultDataSet" currentRecord is not set on DefaultDataSet object when ds.next() is called on BuffReaderDataSet

Thanks, Rahul

— Reply to this email directly or view it on GitHub.

moffatn commented 9 years ago

Hi,

I'm seeing this as well. I had to amend the BuffReaderDataSet.next() method to call super.next() to set the currentRecord, see:

https://gist.github.com/moffatn/4fa5be4e5bb3b81133ae

ks-appendium commented 9 years ago

Can you please post the stack trace and sample invoking client code and we will take a look

benoitx commented 9 years ago

Please try release 3.4.3 or 4.0.1 (java 8). Kindly let us know if this fixes the issue. Thanks for your help

moffatn commented 9 years ago

Thanks, 4.0.1 is working for me.