Commit cf4089be authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent d91c4df4
......@@ -310,8 +310,10 @@ public abstract class SortedBrowserFragment extends BrowseFragment implements Br
owner.updateList();
break;
case HIDE_LOADING:
((VerticalGridActivity)owner.getActivity()).showProgress(false);
((VerticalGridActivity)owner.getActivity()).updateEmptyView(owner.isEmpty());
if (owner.getActivity() != null) {
((VerticalGridActivity)owner.getActivity()).showProgress(false);
((VerticalGridActivity)owner.getActivity()).updateEmptyView(owner.isEmpty());
}
break;
}
}
......
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