From 818411a6e653bd24da9a964e286ec6cac85f3e37 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 8 Dec 2018 11:38:00 +0000 Subject: [PATCH] =?utf8?q?assert=20=E2=86=92=20if=20+=20throw?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../main/java/net/ktnx/mobileledger/NewTransactionActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java index 28eec693..2327ce49 100644 --- a/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java @@ -230,7 +230,7 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.new_transaction, menu); mSave = menu.findItem(R.id.action_submit_transaction); - assert mSave != null; + if (mSave == null) throw new AssertionError(); return true; } -- 2.39.5