From 9850b19fcf341c41280fe5aa17b73dcd3521cd28 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 5 Aug 2020 16:02:02 -0400 Subject: [PATCH] what --- app/src/main/java/awais/instagrabber/MainHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/MainHelper.java b/app/src/main/java/awais/instagrabber/MainHelper.java index 82eccc85..9a63ab82 100755 --- a/app/src/main/java/awais/instagrabber/MainHelper.java +++ b/app/src/main/java/awais/instagrabber/MainHelper.java @@ -199,7 +199,7 @@ public final class MainHelper implements SwipeRefreshLayout.OnRefreshListener { @Override public void onResult(final DiscoverItemModel[] result) { - if (result.length == 0) { + if (result == null || result.length == 0) { Toast.makeText(main, R.string.discover_empty, Toast.LENGTH_SHORT).show(); } else if (result != null) {