diff --git a/src/org/thoughtcrime/securesms/giph/ui/GiphyFragment.java b/src/org/thoughtcrime/securesms/giph/ui/GiphyFragment.java index d90065ced0..b465b43914 100644 --- a/src/org/thoughtcrime/securesms/giph/ui/GiphyFragment.java +++ b/src/org/thoughtcrime/securesms/giph/ui/GiphyFragment.java @@ -66,8 +66,8 @@ public abstract class GiphyFragment extends Fragment implements LoaderManager.Lo public void onLoadFinished(Loader> loader, List data) { this.loadingProgress.setVisibility(View.GONE); - if (data.isEmpty()) noResultsView.setVisibility(View.VISIBLE); - else noResultsView.setVisibility(View.GONE); + if (data == null || data.isEmpty()) noResultsView.setVisibility(View.VISIBLE); + else noResultsView.setVisibility(View.GONE); this.giphyAdapter.setImages(data); }