From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:09:22 +0000 (+0000) Subject: Data.transactions can't be bull here X-Git-Tag: v0.15.0~57 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=2605ed75387bb13f36b95545df467302a89dcf99;p=mobile-ledger.git Data.transactions can't be bull here --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java index fd4dd8a9..f994ec7a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java @@ -37,7 +37,6 @@ public class TransactionListViewModel extends ViewModel { task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, filter); } public static TransactionListItem getTransactionListItem(int position) { - if (Data.transactions == null) return null; try(LockHolder lh = Data.transactions.lockForReading()) { if (position >= Data.transactions.size()) return null; return Data.transactions.get(position);