Browse Source

Null check. Fixes austinhuang0131/barinsta#1630

renovate/androidx.fragment-fragment-ktx-1.x
Ammar Githam 4 years ago
parent
commit
d2e9cabccd
  1. 1
      app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java

1
app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java

@ -616,6 +616,7 @@ public class DirectMessageThreadFragment extends Fragment implements DirectReact
} }
private void setObservers() { private void setObservers() {
if (viewModel == null) return;
threadLiveData = viewModel.getThread(); threadLiveData = viewModel.getThread();
// if (threadLiveData == null) { // if (threadLiveData == null) {
// final NavController navController = NavHostFragment.findNavController(this); // final NavController navController = NavHostFragment.findNavController(this);

Loading…
Cancel
Save