You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I suspect that this is because the writer is not expecting a cell to be null. At the very least a better exception should be thrown that explains that field XXX was null.
java.lang.NullPointerException: null
at org.csveed.row.RowWriterImpl.writeCell(RowWriterImpl.java:107) ~[csveed-0.4.0.jar:na]
at org.csveed.row.RowWriterImpl.writeCells(RowWriterImpl.java:87) ~[csveed-0.4.0.jar:na]
at org.csveed.row.RowWriterImpl.writeRow(RowWriterImpl.java:57) ~[csveed-0.4.0.jar:na]
What I seem to be missing is null handling when writing bean fields. Maybe a setter which says outputBlankCellForNull(boolean) or something?
The text was updated successfully, but these errors were encountered:
Wow, this is frustrating. Not sure what CSVeed is expecting. Do I really need to write custom converters for all of my fields just to handle nulls? Geez. Ok.
mparaz
added a commit
to mparaz/CSVeed
that referenced
this issue
Dec 11, 2014
So I suspect that this is because the writer is not expecting a cell to be null. At the very least a better exception should be thrown that explains that field XXX was null.
java.lang.NullPointerException: null
at org.csveed.row.RowWriterImpl.writeCell(RowWriterImpl.java:107) ~[csveed-0.4.0.jar:na]
at org.csveed.row.RowWriterImpl.writeCells(RowWriterImpl.java:87) ~[csveed-0.4.0.jar:na]
at org.csveed.row.RowWriterImpl.writeRow(RowWriterImpl.java:57) ~[csveed-0.4.0.jar:na]
What I seem to be missing is null handling when writing bean fields. Maybe a setter which says outputBlankCellForNull(boolean) or something?
The text was updated successfully, but these errors were encountered: