Skip to content

Commit

Permalink
Refining the lRecyclerView in adapter for the null view
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbhb59 authored Sep 30, 2023
1 parent ee79c56 commit 4ea1fe6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public void RefreshListGui() {

if (BuildConfig.DEBUG) Log.d(TAG, "stations count:" + historyManager.listStations.size());

adapter.updateList(null, historyManager.listStations);
if( adapter != null )
adapter.updateList(null, historyManager.listStations);
}

@Override
Expand Down Expand Up @@ -214,4 +215,4 @@ public void onDestroyView() {
super.onDestroyView();
rvStations.setAdapter(null);
}
}
}

0 comments on commit 4ea1fe6

Please sign in to comment.