Skip to content

Update ValidationException.java #1353

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DeHopen
Copy link
Contributor

@DeHopen DeHopen commented May 16, 2025

@yegor256

Problem: The ValidationException constructor(String text, Object...args) uses String.format, but does not verify that text is not null.

Improvement: Add a null check for text and possibly for args to avoid NullPointerException.

@yegor256
Copy link
Owner

@DeHopen thanks, but the build is not green

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