mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
added null check for filteredRaces
Change-Id: I0b2c32977cb539f772afc7ddbe26e24b52f83deb
This commit is contained in:
1 parent
360e2e34e8
commit
5be09b667a
1 file changed
+3
-1
+3
-1
@@ -284,7 +284,9 @@ public class ManagedRaceListAdapter extends ArrayAdapter<RaceListDataType> imple
|
||||
public void onResult(List<ManagedRace> filteredRaces) {
|
||||
synchronized (mLockObject) {
|
||||
mShownViewItems.clear();
|
||||
mShownViewItems.addAll(getShownViewItems(filteredRaces));
|
||||
if (filteredRaces != null) {
|
||||
mShownViewItems.addAll(getShownViewItems(filteredRaces));
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user