Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: Null reference bug in XLWorkbook_Load [9426]

$
0
0
This manifests itself when opening XSLX files generated by Microsoft ReportViewer control.


XLWorkbook_Load.cs line 857:
```
xlCell._cellValue = cell.InlineString != null ? cell.InlineString.Text.Text.FixNewLines() : String.Empty;
```

should be changed to:

```
xlCell._cellValue = cell.InlineString != null && cell.InlineString.Text != null ? cell.InlineString.Text.Text.FixNewLines() : String.Empty;
```
Comments: Added the fix. Thanks.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>