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

NullPointerException when assigning a world to a user #313

Description

@CrUsHoR

When I added a SonarQube server and then try to assign the world to a gamemaster or developer, a NullPointerException is thrown and the modal doesn't close.
Screenshot 2022-03-22 102558
My guess is that when editing a user and assigning him to a world, the backend tries to save the user including the password that is null (there is no password field when editing the user).
I already changed the line 150 in the UserService and added user.getPassword() != null, otherwise it tries to overwrite the password.
At a first glance, this seems to work.
I installed SonarQuest with docker and deactivated CORS. Otherwise I didn't change the configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error that needs to be fixed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions