Commit 12485107 authored by Varun Patil's avatar Varun Patil

Check destroyed activity in settings

parent fa395929
...@@ -87,6 +87,9 @@ public class SettingsFragment extends Fragment { ...@@ -87,6 +87,9 @@ public class SettingsFragment extends Fragment {
} }
private void populateViews() { private void populateViews() {
// Check if we exist
if (getActivity() == null || getView() == null) return;
Button updateProfileButton = getActivity().findViewById(R.id.settings_update_profile); Button updateProfileButton = getActivity().findViewById(R.id.settings_update_profile);
Button feedbackButton = getActivity().findViewById(R.id.settings_feedback); Button feedbackButton = getActivity().findViewById(R.id.settings_feedback);
Button aboutButton = getActivity().findViewById(R.id.settings_about); Button aboutButton = getActivity().findViewById(R.id.settings_about);
......
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