check for null

This commit is contained in:
B. Petersen
2019-05-22 12:09:31 +02:00
parent 9c60c387f4
commit b4268b12ed
@@ -72,7 +72,7 @@ public class ProfileSettingsFragment extends Fragment {
int[] memberList = null;
DcChatlist sharedChats = null;
if(dcChat.isGroup()) {
if(dcChat!=null && dcChat.isGroup()) {
memberList = dcContext.getChatContacts(chatId);
}
else if(contactId>0) {