diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java index 926aa59..b6a7a94 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/adapters/PlacesAdapter.java @@ -60,11 +60,12 @@ public class PlacesAdapter extends ArrayAdapter { ImageView placePreviewWidget = (ImageView)resultView.findViewById(R.id.place_img_preview); placePreviewWidget.setImageBitmap(BitmapFactory.decodeResource(getContext().getResources(), R.drawable.noimage)); - - ImageLoader.getInstance().displayImage( - photoUrl != null ? photoUrl : item.getIcon(), - placePreviewWidget, - MainActivity.options); + if (photoUrl != null ) { + ImageLoader.getInstance().displayImage( + photoUrl, + placePreviewWidget, + MainActivity.options); + } resultView.setTag(item.getId());