Skip to content
Snippets Groups Projects
Commit 477dd478 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE in network browser

parent 41139c21
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,8 @@ public class NetworkBrowserFragment extends BaseBrowserFragment implements Exter
* Update views visibility and emptiness info
*/
protected void updateEmptyView() {
if (mEmptyView == null)
return;
if (ExternalMonitor.isConnected()) {
if (mAdapter.isEmpty()) {
if (mSwipeRefreshLayout == null || mSwipeRefreshLayout.isRefreshing()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment