Fix NPE
This commit is contained in:
parent
9b3e1f528e
commit
103adf8a90
2 changed files with 5 additions and 2 deletions
|
@ -213,7 +213,7 @@
|
|||
<string name="poi_fuel_lpg">LPG</string>
|
||||
<string name="poi_fuel_octane_80">Octane 80</string>
|
||||
<string name="poi_fuel_octane_91">Octane 91</string>
|
||||
<string name="poi_fuel_octane_92">Octane 92</string>
|
||||
<string name="poi_fuel_octane_92">Octane %%92</string>
|
||||
<string name="poi_fuel_octane_95">Octane 95</string>
|
||||
<string name="poi_fuel_octane_98">Octane 98</string>
|
||||
<string name="poi_fuel_octane_100">Octane 100</string>
|
||||
|
|
|
@ -340,7 +340,10 @@ public class PoiFiltersHelper {
|
|||
public void loadSelectedPoiFilters() {
|
||||
Set<String> filters = application.getSettings().getSelectedPoiFilters();
|
||||
for (String f : filters) {
|
||||
selectedPoiFilters.add(getFilterById(f));
|
||||
PoiUIFilter filter = getFilterById(f);
|
||||
if (filter != null) {
|
||||
selectedPoiFilters.add(filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue