Commit a0b1183f authored by Sajal Narang's avatar Sajal Narang

Fix app crash in SettingsFragment

parent 979e0461
......@@ -75,6 +75,9 @@ public class SettingsFragment extends Fragment {
}
private void populateUserCard() {
if (getActivity() == null || getView() == null) {
return;
}
ImageView userProfilePictureImageView = getActivity().findViewById(R.id.user_card_avatar);
TextView userNameTextView = getActivity().findViewById(R.id.user_card_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment