Skip to content

Session list doesn't handle non-existing client gracefully #32150

Closed
@ahus1

Description

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

core

Describe the bug

When showing the sessions in the admin UI and the client is no longer available, an NPE will occur.

Version

main

Regression

  • The issue is a regression

Expected behavior

When a client has been removed, the sessions shouldn't be shown in the UI

Actual behavior

An exception occurs

How to Reproduce?

Using an external store of the sessions, clear the database, then open the sessions list in the UI

Anything else?

Similar code exists here:

ClientModel client = realm.getClientById(entry.getKey());
if (client == null)
continue;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions