mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
Fix potential crash in pet screen
This commit is contained in:
parent
d72b329868
commit
6f39f57a80
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue