diff --git a/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java b/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java index 238dd32b..b886b170 100644 --- a/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java +++ b/leku/src/main/java/com/schibstedspain/leku/LocationPickerActivity.java @@ -534,7 +534,7 @@ public void didLoadLocation() { changeListResultVisibility(locationList.size() > 1 ? View.VISIBLE : View.GONE); - if (locationList.size() == 1 && locationList.get(0).getMaxAddressLineIndex() >= 0) { + if (locationList.size() == 1 && locationList.get(0) != null) { changeLocationInfoLayoutVisibility(View.VISIBLE); } else { changeLocationInfoLayoutVisibility(View.GONE);