When accepting a group invitation request, the app will crash.
The reason behind this is because, in the database, the memberGroupIdList is null instead of empty when a user is new to the app. So, when the app tries to add the user to a group, it will call something like null.add(group) which crashes the app.
To Reproduce:
Steps to reproduce the behavior:
Create a new user (let's call them user_1)
From another account (user_2), invite user_1 into its group
From user_1's account, accept their invitation
App crashes
Expected behavior
User_1 should be added to user_2's group successfully.
Related Issue(s):
52
Relevant File(s):
SignUpPageActivity.java
Describe the bug:
When accepting a group invitation request, the app will crash.
The reason behind this is because, in the database, the memberGroupIdList is null instead of empty when a user is new to the app. So, when the app tries to add the user to a group, it will call something like
null.add(group)
which crashes the app.To Reproduce:
Steps to reproduce the behavior:
Expected behavior
User_1 should be added to user_2's group successfully.