-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
panic: runtime error: index out of range [0] with length 0 #1723
Comments
Thanks for your issue. I have tested your code with the attachment in v2.7.0, and it works well. We need more details info or a reproducation demo for this. May be the pull request #1692 resolve the same problems with this. |
- Fix panic on read workbook with internal row element without r attribute - Update the unit tests
I have merged the pull request #1692 to resolve this issue. This patch will be released in the next version. |
According to the benchmark report of v2.8.1, the fix for this (commit: |
Subject of the issue
I get the following panic when using the library
github.com/xuri/excelize/v2
:panic: runtime error: index out of range [0] with length 0
Your environment
Steps to reproduce
the client had a panic. for what reason is unclear
the code is approximately as follows
Actual behaviour
panic occurs when the
getCellType
method is called in thecellType, err := fileXlsx.GetCellType(sheet, axis.getAxis())
Expected behaviour
there should obviously be no panic. it is unclear for what reason it appears, since there is no way to view the problematic client file. maybe it's the version? has anyone encountered such behavior? unfortunately, there is no way to check whether it is the version or not, since (as I said) there is no way to repeat the panic due to lack of access to the client file
Log
here is the file that was provided to me, but it does not cause panic, but perhaps reflects the structure of the client's file: panic_import_ob (1).xlsx
based on the function in which the panic occurred, I can't understand why this happened
The text was updated successfully, but these errors were encountered: