]> git.ktnx.net Git - mobile-ledger.git/commitdiff
mFragment may be null here
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 13 Apr 2019 20:01:19 +0000 (23:01 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 13 Apr 2019 20:11:44 +0000 (23:11 +0300)
happened on 5.1.1

app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java

index c308d6320fe73674461d56507c0227b39ca82b06..a5c973b096dff0c0fce6e2a664d0e7346e996200 100644 (file)
@@ -88,7 +88,7 @@ public class ProfileDetailActivity extends CrashReportingActivity {
     public boolean onCreateOptionsMenu(Menu menu) {
         super.onCreateOptionsMenu(menu);
         Log.d("profiles", "[activity] Creating profile details options menu");
-        mFragment.onCreateOptionsMenu(menu, getMenuInflater());
+        if (mFragment != null) mFragment.onCreateOptionsMenu(menu, getMenuInflater());
 
         return true;
     }