Fix potential crash in pet screen

This commit is contained in:
Phillip Thelen 2016-04-15 11:17:33 +02:00
parent d72b329868
commit 6f39f57a80

View file

@ -113,7 +113,7 @@ public class PetDetailRecyclerAdapter extends RecyclerView.Adapter<PetDetailRecy
return false;
}
if (ownedMountMapping != null && animal != null) {
if (ownedMountMapping.containsKey(animal.getKey()) && ownedMountMapping.get(animal.getKey())) {
if (ownedMountMapping.get(animal.getKey()) != null) {
return true;
}
}