Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nullreferenceexception with RowsFit tag when empty data source.

See original GitHub issue

As @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:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

igiturcommented, Mar 30, 2022

@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.

davijacommented, Mar 30, 2022

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found