Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1033351 authored by James Kung's avatar James Kung
Browse files

Fix NPE on selected cities

Bug: 10691557
Change-Id: I86b7eaa36bd5db6aba723663623ccc39034717e4
parent 372a49ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -136,7 +136,7 @@ public class CitiesActivity extends Activity implements OnCheckedChangeListener,
                ArrayList<Integer> sectionPositions = new ArrayList<Integer>();
                ArrayList<Integer> sectionPositions = new ArrayList<Integer>();


                // If the search query is empty, add in the selected cities
                // If the search query is empty, add in the selected cities
                if (TextUtils.isEmpty(modifiedQuery)) {
                if (TextUtils.isEmpty(modifiedQuery) && mSelectedCities != null) {
                    if (mSelectedCities.length > 0) {
                    if (mSelectedCities.length > 0) {
                        sectionHeaders.add("+");
                        sectionHeaders.add("+");
                        sectionPositions.add(0);
                        sectionPositions.add(0);