]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
fix crash when profile has no value yet
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / activity / MainActivity.java
index 02eb8096c7b2b0799515e45f95c2f72ed6292345..641d296c2d502c28ec81e0de4f71b215031d56a7 100644 (file)
@@ -395,6 +395,6 @@ public class MainActivity extends CrashReportingActivity {
     }
     public void fabShouldShow() {
         MobileLedgerProfile profile = Data.profile.get();
-        if (profile.isPostingPermitted()) fab.show();
+        if ((profile != null) && profile.isPostingPermitted()) fab.show();
     }
 }