mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Guard against a potential NPE
This commit is contained in:
parent
54402ca308
commit
2649014416
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ public class ContributionsActivity
|
|||
}
|
||||
|
||||
public void onBackStackChanged() {
|
||||
if(mediaDetails.isVisible()) {
|
||||
if(mediaDetails != null && mediaDetails.isVisible()) {
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
} else {
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue