From 2605ed75387bb13f36b95545df467302a89dcf99 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:09:22 +0000 Subject: [PATCH] Data.transactions can't be bull here --- .../ui/transaction_list/TransactionListViewModel.java | 1 - 1 file changed, 1 deletion(-) 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); -- 2.39.5