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
I have a CSV with number fields that are not always filled (converted from an XLS with merged cells). I've annotated this field as follows in the bean:
@CsvCell(required = false)
private Integer memoryAddress;
yet when I try to read the CSV with an empty cell for this field, I get a CsvException saying:
"Problem converting cell index 13 (M) [] to memoryAddress: java.lang.Number"
So it seems the "required" property of the @CsvCell annotation does not work for Integers, apparently only for Strings. Instead of the exception I expected this field would just simply be null in the bean and not cause an exception because of the "required=false" annotation.
version info: 'org.csveed:csveed:0.4.2'
The text was updated successfully, but these errors were encountered:
I have a CSV with number fields that are not always filled (converted from an XLS with merged cells). I've annotated this field as follows in the bean:
@CsvCell(required = false)
private Integer memoryAddress;
yet when I try to read the CSV with an empty cell for this field, I get a CsvException saying:
"Problem converting cell index 13 (M) [] to memoryAddress: java.lang.Number"
So it seems the "required" property of the @CsvCell annotation does not work for Integers, apparently only for Strings. Instead of the exception I expected this field would just simply be null in the bean and not cause an exception because of the "required=false" annotation.
version info: 'org.csveed:csveed:0.4.2'
The text was updated successfully, but these errors were encountered: