Fix possible npe
This commit is contained in:
parent
fdd52c087c
commit
5d502da151
1 changed files with 3 additions and 0 deletions
|
@ -689,6 +689,9 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
|||
}
|
||||
|
||||
private List<TransportStopRoute> filterNearbyTransportRoutes(List<TransportStopRoute> routes, List<TransportStopRoute> filterFromRoutes) {
|
||||
if (filterFromRoutes == null) {
|
||||
return routes;
|
||||
}
|
||||
List<TransportStopRoute> filteredRoutes = new ArrayList<>();
|
||||
for (TransportStopRoute route : routes) {
|
||||
if (!containsRef(filterFromRoutes, route.route)) {
|
||||
|
|
Loading…
Reference in a new issue