NullPointerException error when we are adding any user to the group from profile

Description

NullPointerException error when we are adding any users to the group from the user profile.

Steps to reproduce:
1. From user profile click on My Group section.
2. Click on one group and then click on add user to group.
3. Search for any user.
4. Do not select a user and click on the Add User button.

Please see the below screenshot for reference.

Environment

None

Assignee

Santwana Sarangi

Reporter

Mladen Magić

Labels

None

Atlassian Software Version

JIRA 8.5.3

cc

None

Affects versions

Priority

Major
Configure