From: Damyan Ivanov Date: Sat, 13 Apr 2019 20:01:19 +0000 (+0300) Subject: mFragment may be null here X-Git-Tag: v0.9.5~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9b58fbd097a91069e14f47d97c3c543c5ca9ba4a;p=mobile-ledger.git mFragment may be null here happened on 5.1.1 --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java index c308d632..a5c973b0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java @@ -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; }