-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NullReferenceException reading Excel: 0.0.6-alpha1 #12
Comments
@clarkis117, this issue only happens on version 0.0.6-alpha1 (pre-release), unfortunately I need some fixes of this version, so I cannot use the previous one. Additional information: I think that your new "CreateMemoryStreamIfSourceIsNull" method is not working properly resulting in a null Source prop. |
@1100594 Thank you for the report will look into this soon 😀 |
Thank you @clarkis117, I have more information for you. The problem is that you trying to change the value of a in "readResult" parameter (aka. readonly ref parameter), please consider remove the "in" keyword or use another approach to change the value of the "source" prop. More info: https://blogs.msdn.microsoft.com/mazhou/2018/01/08/c-7-series-part-8-in-parameters/ |
Remove commented code Add unit tests for byte array ext with jpg, docx, zip, xlsx and pptx
Fix NullReferenceException reading Excel: 0.0.6-alpha1 #12
Resolved by #13 |
@1100594 The new version (alpha2) should be available on nuget now 😁 |
Great! Thank you @clarkis117! |
When detecting a Excel File from a byte array throws a NullReferenceException at MimeDetective.MimeTypes.FindZipType(ReadResult& readResult) in \src\Mime-Detective\MimeTypes.cs:line 314
test.xlsx
The text was updated successfully, but these errors were encountered: