Skip to content

(doc) Throw more descriptive NPEx - #95

Merged
slawekjaranowski merged 3 commits into
apache:masterfrom
pzygielo:MJAR-286
Mar 11, 2022
Merged

slawekjaranowski merged 3 commits into
apache:masterfrom
pzygielo:MJAR-286

Conversation

@pzygielo

@pzygielo pzygielo commented Mar 4, 2022

Copy link
Copy Markdown
Contributor

As suggested in MJAR-286:

If this is a misconfigured pom, it should at least give a proper error message.

Thus replacing JVM-thrown NPEx with the one with message.

@pzygielo
pzygielo marked this pull request as ready for review March 4, 2022 11:35
@pzygielo

This comment was marked as outdated.

@slawekjaranowski slawekjaranowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

simple unit test will be appreciated 😉
it is public method

This verifies/locks current behavior of throwing NPEx
on null being dereferenced in DirectoryScanner.setIncludes/Excludes.
@pzygielo
pzygielo marked this pull request as draft March 11, 2022 12:24
@pzygielo
pzygielo marked this pull request as ready for review March 11, 2022 12:42
@slawekjaranowski
slawekjaranowski merged commit 412b279 into apache:master Mar 11, 2022
@pzygielo
pzygielo deleted the MJAR-286 branch March 11, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants