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

Problem in get clouds - performCloudDiscovery throws null pointer exception #2230

Open
lzancan opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@lzancan
Copy link

lzancan commented Dec 18, 2024

Describe the bug
My app uses version 5.7.0, and we're facing null pointer exception on trying to perform cloud discovery for months yet. This problem occurs in Attempt to invoke virtual method 'java.util.ArrayList com.microsoft.identity.common.java.providers.microsoft.azureactivedirectory.AzureActiveDirectoryInstanceResponse.getClouds()' on a null object reference when calling getKnownAuthorityResult

Smartphone (please complete the following information):

Device: Samsung SM-A155M
Android Version: 14
Browser
MSAL Version 5.7.0

Stacktrace
com.microsoft.identity.common.java.providers.microsoft.azureactivedirectory.AzureActiveDirectory AzureActiveDirectory.java line 211 in com.microsoft.identity.common.java.providers.microsoft.azureactivedirectory.AzureActiveDirectory.performCloudDiscovery() com.microsoft.identity.common.java.authorities.Authority Authority.java line 316 in com.microsoft.identity.common.java.authorities.Authority.performCloudDiscovery() com.microsoft.identity.common.java.authorities.Authority Authority.java line 396 in com.microsoft.identity.common.java.authorities.Authority.getKnownAuthorityResult() com.microsoft.identity.common.java.controllers.BaseController BaseController.java line 835 in com.microsoft.identity.common.java.controllers.BaseController.performSilentTokenRequest() com.microsoft.identity.common.java.controllers.BaseController BaseController.java line 479 in com.microsoft.identity.common.java.controllers.BaseController.renewAccessToken() com.microsoft.identity.common.internal.controllers.LocalMSALController LocalMSALController.java line 465 in com.microsoft.identity.common.internal.controllers.LocalMSALController.renewAT() com.microsoft.identity.common.internal.controllers.LocalMSALController LocalMSALController.java line 383 in com.microsoft.identity.common.internal.controllers.LocalMSALController.acquireTokenSilent() com.microsoft.identity.common.java.commands.SilentTokenCommand SilentTokenCommand.java line 88 in com.microsoft.identity.common.java.commands.SilentTokenCommand.execute() com.microsoft.identity.common.java.commands.SilentTokenCommand SilentTokenCommand.java line 48 in com.microsoft.identity.common.java.commands.SilentTokenCommand.execute() com.microsoft.identity.common.java.controllers.CommandDispatcher CommandDispatcher.java line 539 in com.microsoft.identity.common.java.controllers.CommandDispatcher.executeCommand() com.microsoft.identity.common.java.controllers.CommandDispatcher CommandDispatcher.java line 98 in com.microsoft.identity.common.java.controllers.CommandDispatcher.access$100() com.microsoft.identity.common.java.controllers.CommandDispatcher$1 CommandDispatcher.java line 364 in com.microsoft.identity.common.java.controllers.CommandDispatcher$1.run() io.opentelemetry.context.Context Context.java line 212 in io.opentelemetry.context.Context.lambda$wrap$1() io.opentelemetry.context.Context Context.java in io.opentelemetry.context.Context.$r8$lambda$KbuEVNhsKbIcVJ9dNjuqp8ryj6c() io.opentelemetry.context.Context$$ExternalSyntheticLambda5 Context.java in io.opentelemetry.context.Context$$ExternalSyntheticLambda5.run() java.util.concurrent.ThreadPoolExecutor ThreadPoolExecutor.java line 1145 in java.util.concurrent.ThreadPoolExecutor.runWorker() java.util.concurrent.ThreadPoolExecutor$Worker ThreadPoolExecutor.java line 644 in java.util.concurrent.ThreadPoolExecutor$Worker.run() java.lang.Thread Thread.java line 1012 in java.lang.Thread.run()

To Reproduce
It occurs eventually on prod versions, no informations about how to reproduce, it's randomly

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

No branches or pull requests

1 participant