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

Commit 6ac48365 authored by James Kung's avatar James Kung
Browse files

Fix NPE on selected cities

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

                // 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) {
                        sectionHeaders.add("+");
                        sectionPositions.add(0);