Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check/error in PdfPTable.addCell #1195

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Conversation

StevenStreasick
Copy link
Contributor

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

Copy link
Member

@asturio asturio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @StevenStreasick ,

could you take a look at these checkstyle errors and correct your PR?

Copy link

sonarqubecloud bot commented Aug 8, 2024

@StevenStreasick StevenStreasick requested a review from asturio August 8, 2024 15:16
@asturio asturio merged commit 31ed3aa into LibrePDF:master Nov 25, 2024
3 checks passed
asturio added a commit that referenced this pull request Nov 25, 2024
- Added Test for changed Method
- Added localization for exception message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants