-
Notifications
You must be signed in to change notification settings - Fork 93
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
csvReader.read(file, StandardCharsets.UTF_8); Gives Null even if it's contains a header #38
Labels
Comments
Hi, I also have this problem. I have an empty CSV file and I get Nullpointer exception, which is not good. Even javadoc on "read" method says that null is never returned, but it is. Please fix it so null is never returned, or at least update javadoc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I have a issue here. I know that you have write the code like this, but this line gives null
CsvContainer csvContainer = csvReader.read(file, StandardCharsets.UTF_8);
Even if I have a header. I understand if
csvContainer
is null if the CSV file is empty, but it should not be null ifcsvContainer
has at least one row or a header.Edit:
Found out that this can be done this way.
FastCSV should have a method where to append text to files. I know that you have such method, but that will first remove all data, then fill.
It's a great library and I will use it with Deeplearning4j. But I wonder if you could make an interface so it would be easier to use?
Easier I mean by a programmer should not need to write this much code for null exceptions
The text was updated successfully, but these errors were encountered: