From bb80733ae688904e35d325df315505c95ee041dd Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 6 Sep 2020 08:50:29 +0000 Subject: [PATCH] address nullability warning --- .../java/net/ktnx/mobileledger/model/MobileLedgerProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index 373f1325..d9fd260a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -162,7 +162,7 @@ public final class MobileLedgerProfile { db.beginTransactionNonExclusive(); try { int orderNo = 0; - for (MobileLedgerProfile p : Data.profiles.getValue()) { + for (MobileLedgerProfile p : Objects.requireNonNull(Data.profiles.getValue())) { db.execSQL("update profiles set order_no=? where uuid=?", new Object[]{orderNo, p.getUuid()}); p.orderNo = orderNo; -- 2.39.5