]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailActivity.java
fix creation of a new profile after Room-y of Profile adoption
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / profiles / ProfileDetailActivity.java
index d389dd8ab9a52cd55e4e56eb610b1ca2ab77524c..1b88f480254b5129bbd921ba8efdd65395dc0634 100644 (file)
@@ -65,9 +65,6 @@ public class ProfileDetailActivity extends CrashReportingActivity {
     protected void onCreate(Bundle savedInstanceState) {
         final long id = getIntent().getLongExtra(ProfileDetailFragment.ARG_ITEM_ID, -1);
 
-        if (id == -1)
-            throw new RuntimeException("Invalid or missing profile ID");
-
         DB.get()
           .getProfileDAO()
           .getById(id)