MathNya / umya-spreadsheet

A pure rust library for reading and writing spreadsheet files
MIT License
239 stars 41 forks source link

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value' #118

Closed sunnyboy00 closed 1 year ago

sunnyboy00 commented 1 year ago

thread 'main' panicked at 'called Option::unwrap() on a None value', umya-spreadsheet/src/structs/vml/shape.rs:283:77 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

thread 'main' panicked at 'called Option::unwrap() on a None value', umya-spreadsheet/src/structs/drawing/spreadsheet/two_cell_anchor.rs:222:55 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

MathNya commented 1 year ago

@sunnyboy00 Thank you for your report. From the error, it seems that there is a problem when loading the image file. If possible, please provide us with the Excel file in which the error occurred.

sunnyboy00 commented 1 year ago

test1.zip

upload file

I think the unwrap() function should not be used

MathNya commented 1 year ago

Thank you for the files. We were able to confirm the event here as well. We will address this issue in the next version of the software.

sunnyboy00 commented 1 year ago

thread 'main' panicked at 'called Option::unwrap() on a None value', umya-spreadsheet/src/structs/vml/shape.rs:283:77

pls fix the same issue