diff --git a/src/main/java/com/mapzen/open/search/PagerResultsFragment.java b/src/main/java/com/mapzen/open/search/PagerResultsFragment.java index 61014466..5113b374 100644 --- a/src/main/java/com/mapzen/open/search/PagerResultsFragment.java +++ b/src/main/java/com/mapzen/open/search/PagerResultsFragment.java @@ -229,9 +229,11 @@ public void add(SimpleFeature simpleFeature) { } public void update(SimpleFeature simpleFeature) { - TextView address = (TextView) pager.findViewById(R.id.address); - address.setText(String.format(Locale.getDefault(), "%s, %s", - simpleFeature.getCity(), simpleFeature.getAdmin())); + if (pager != null) { + TextView address = (TextView) pager.findViewById(R.id.address); + address.setText(String.format(Locale.getDefault(), "%s, %s", + simpleFeature.getCity(), simpleFeature.getAdmin())); + } } public void setSearchResults(List features) {