From 9b58fbd097a91069e14f47d97c3c543c5ca9ba4a Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 13 Apr 2019 23:01:19 +0300 Subject: [PATCH] mFragment may be null here happened on 5.1.1 --- .../ktnx/mobileledger/ui/activity/ProfileDetailActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5