Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Fixing NPE in getCurrentAuditor #4876

Closed
wants to merge 4 commits into from
Closed

Fixing NPE in getCurrentAuditor #4876

wants to merge 4 commits into from

Conversation

corneil
Copy link
Contributor

@corneil corneil commented Apr 6, 2022

Fixing NPE in getCurrentAuditor.

Fixes #4861

@corneil corneil added this to the 2.10.0-M2 milestone Apr 6, 2022
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

* Test the fix for the case where the authentication doesn't contain a name but isn't anonymous it resulted in an NPE.
*/
@Test
public void testNullPointerOnUnnamedPrincipal() {
Copy link
Contributor

Choose a reason for hiding this comment

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

[NIT] 2 features Junit5 brings that we should use more is

  1. no need for public class or methods
  2. no need to prefix method names w/ "test"

I will adjust during merge.

@onobc
Copy link
Contributor

onobc commented Apr 7, 2022

Closed via b8bf2de

@onobc onobc closed this Apr 7, 2022
@markpollack markpollack modified the milestones: 2.10.0-M2, 2.10.0-M3 Aug 17, 2022
@corneil
Copy link
Contributor Author

corneil commented Oct 11, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

NullPointer throw when authenticate via Bearer Token to active endpoint i.e. register application
4 participants