Skip to content

Fix null validation in DateUtils#222

Open
yamenx wants to merge 1 commit into
UniTime:masterfrom
yamenx:master
Open

Fix null validation in DateUtils#222
yamenx wants to merge 1 commit into
UniTime:masterfrom
yamenx:master

Conversation

@yamenx
Copy link
Copy Markdown

@yamenx yamenx commented May 3, 2026

Added null checks in DateUtils methods to prevent runtime exceptions

@tomas-muller
Copy link
Copy Markdown
Contributor

The proposed change does not really fix anything. That is, I do not really see an advantage to throwing an IllegalArgumentException instead of a NullPointerException.

Do you have a case where the two methods are actually used with a null argument?

Changes to the Eclipse configuration files should not be included.

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