OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Added check/error in PdfPTable.addCell

Open StevenStreasick opened this issue 1 year ago • 1 comments

Description of the new Feature/Bugfix

I added a custom error message to PdfPTable.addCell(PdfPTable table) if the user called addCell with itself as the parameter.

Related Issue: Previously, the error would grow in the terminal, which made it a nightmare to troubleshoot. The error was also not descriptive, makin it even harder to troubleshoot.

Unit-Tests for the new Feature/Bugfix

Compatibilities Issues

The PdfPTable.addCell method signature was changed - now it can throw a DocumentException, but no repository code should be impacted..

Your real name

Steven Streasick

Testing details

StevenStreasick avatar Jul 23 '24 12:07 StevenStreasick