This commit is contained in:
Austin Huang 2020-08-05 16:02:02 -04:00
parent cdb337e07f
commit 9850b19fcf
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 1 additions and 1 deletions

View File

@ -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) {