Skip to content

NPE when accessing Account UI and the ACCOUNT feature is disabled #48806

@mabartos

Description

@mabartos

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

account/api

Describe the bug

When the ACCOUNT_V3 feature is disabled, accessing the account console endpoint throws a NullPointerException in AccountLoader.getAccountResourceProvider().

Image

Version

26.6

Regression

  • The issue is a regression

Expected behavior

  • The "Manage account" link should be hidden when ACCOUNT_V3 is disabled.
  • AccountLoader should handle a null theme gracefully instead of throwing an NPE.

Actual behavior

  • The "Manage account" link leads to the 500 HTTP error
  • AccountLoader throws an NPE.

How to Reproduce?

  1. Start Keycloak with --features-disabled=account-v3
  2. Navigate to the Admin Console
  3. Click the user dropdown in the top-right navbar and select "Manage account"
  4. Observe a 500 error / NPE in the server log

Anything else?

No response

Metadata

Metadata

Assignees

Type

No fields configured for bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions