Skip to content

Auth failures report NullPointerException instead of full error #250

@CharlesW4

Description

@CharlesW4

I have a project based closely on the java web app sample. When attempting to redeem the auth code for a token it occasionally fails. However instead of reporting a AD exception it encounters a NullPointerException within the logging step: AuthenticationResultSupplier.logException(AuthenticationResultSupplier.java:139.
Stack trace: msal4j nullpointer.txt

I am using v1.5.0 but based on v1.6.1 the issue appears to be that MsalClientException does not have an error code in that scenario and fails comparison.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working, needs an investigation and a fix

Type

No type

Projects

Status

Done (in PR or next release)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions