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

WELD-2464: Prevent NPE in ProtectionDomainCache #1791

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

Azquelt
Copy link
Contributor

@Azquelt Azquelt commented Feb 15, 2018

Prevent NullPointerException in ProtectionDomainCache if
ProtectionDomain.getPermissions() returns null.

Prevent NullPointerException in ProtectionDomainCache if
ProtectionDomain.getPermissions() returns null.
@WeldJenkins
Copy link

Can one of the admins verify this patch?

2 similar comments
@WeldJenkins
Copy link

Can one of the admins verify this patch?

@WeldJenkins
Copy link

Can one of the admins verify this patch?

@mkouba
Copy link
Member

mkouba commented Feb 16, 2018

test this please

@mkouba mkouba merged commit 2bbe90c into weld:master Feb 16, 2018
@Azquelt
Copy link
Contributor Author

Azquelt commented Feb 16, 2018

@mkouba You asked me to test this but then merged the PR. Did you want me to open a new PR to add a unit test?

It should be possible to unit test except that getProtectionDomainForProxy is a package-scoped method so the unit test would have to be in the same package or use reflection to call the method and I couldn't see any existing unit tests which do that.

I did test that the change fixes the issue we were seeing in OpenLiberty before submitting it.

@mkouba
Copy link
Member

mkouba commented Feb 16, 2018

@Azquelt test this please is a phrase that triggers our CI builds (see also https://wiki.jenkins.io/display/JENKINS/GitHub+pull+request+builder+plugin ;-). I don't think a test is needed.

@Azquelt
Copy link
Contributor Author

Azquelt commented Feb 16, 2018

Got it, thanks for clearing up my confusion 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants