Skip to content

NullPointerException when assigning a world to a user #313

Open
@CrUsHoR

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions