on-internet
← Community

Intermittent NullReferenceException in iText 9.8.0 table layout on .NET 11

Stack Overflow ·

I can reproduce an intermittent NullReferenceException in iText 9.8.0 on Windows with .NET runtime 11.0.0 and SDK 11.0.100. The reproducer is a standalone console app that generates PDFs sequentially in a single process. Run the attached project with dotnet run -c Release -f net11.0. The app repeatedly generates a PDF and calls TableRenderer.Layout() to measure a table. I expected it to calculate the table height on every iteration. In my run, it threw on iteration 483. Relevant stack frames, from the throw site outward: System.NullReferenceException CellRenderer.ApplyMargins AbstractRenderer.

Comments

Sign in or sign up to comment and upvote.

No comments yet.