nullreferenceexception with RowsFit tag when empty data source.
See original GitHub issueAs @BenKmann wrote:
I still get an Exception. Nullref because of the RowsFitTag.
bei ClosedXML.Report.Options.RowsFitTag.Execute(ProcessingContext context) bei ClosedXML.Report.Options.TagsList.Execute(ProcessingContext context) bei ClosedXML.Report.RangeTemplate.RangeTagsApply(IXLRange range, Object[] items) bei ClosedXML.Report.RangeInterpreter.EvaluateValues(IXLRange range, Parameter[] pars) bei ClosedXML.Report.RangeInterpreter.Evaluate(IXLRange range) bei ClosedXML.Report.XLTemplate.Generate()
Condition is, Empty Datasource + i use the following Tags in Column A
<<summaryabove>><<DisableGrandTotal>><<RowsFit>>
RowsFit than is pretty unhappy about the 0 rows. If i Remove
<<RowsFit>>
the Exception disappears.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Releases · ClosedXML/ClosedXML.Report
Fixed NullReferenceException when horizontal ranges are nested into vertical ones; Fixed the ability to reference Totals from formulas in data ...
Read more >data binding - c# how do i check if datasource is null?
If the DataSource is a DataTable, you can check first that the DataTable is not null, and secondly that its Rows.Count > 0....
Read more >Empty record when the DataSource is null, but not when an ...
Hey, When I create an empty VGridControl, an empty record is shown (i.e., there are two columns: the editor-rows and this empty record)....
Read more >Aspose.Words for Java 17.3.0 Release Notes
Now Aspose.Words evaluates all related fields in FontInfo (Panose, Sig etc) and finds the closest match among the available font sources. Asian font...
Read more >null reference when trying to set empty datasource
This was working just in 6.3.2. System.NullReferenceException: Object reference not set to an instance of an object. at Vyzo.Reports.Data.Task.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@davija This is open source. If you’re unhappy with the release cycle, you can do your own build. The author of this library doesn’t owe anybody anything. He is already sacrificing her personal time to maintain this library. For free.
@igitur Yes, I am well aware of that. However, when you have a library that people use and depend on with a somewhat critical bug in a basic feature, it is nice to see progress on getting those bugs fixed and released once fixed (it was fixed ~5 months ago).
Additionally, it doesn’t take that long to do the release process and publish to nuget (I pretty much have already forked, built and published to our own repository).