Skip to content
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

Error on reading files where <c> element misses the "r" attribute #465

Open
fabiospiga opened this issue Aug 22, 2024 · 2 comments
Open

Comments

@fabiospiga
Copy link

I need to read a file where the element <row> and <c> miss the "r" attribute, that is apparently optional in the OpenXML structure.

Here's an example:
https://www.atih.sante.fr/sites/default/files/public/content/3968/fichier_complementaire_ccam_descriptive_a_usage_pmsi_2021_v2.xlsx

The raised exception is:
Cannot invoke "java.lang.Integer.intValue()" because the return value of "org.dhatim.fastexcel.reader.SimpleXmlReader.getIntAttribute(String)" is null

because int rowIndex cannot be unboxed at org.dhatim.fastexcel.reader.RowSpliterator#next

Could you please provide support for this use case?

Thanks and best regards,
Fabio

@fabiospiga fabiospiga changed the title Error on reading files where <c> element is misses the "r" attribute Error on reading files where <c> element misses the "r" attribute Aug 22, 2024
@RamsesGomez
Copy link

yes I have the exact same problem

@ochedru
Copy link
Collaborator

ochedru commented Sep 17, 2024

You are right, the r attribute is optional. We should check how this is handled in Apache POI. For example, what happens if some elements miss the r attribute, but not all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants