]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Data.transactions can't be bull here
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:09:22 +0000 (12:09 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:48:13 +0000 (12:48 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java

index fd4dd8a9c4ac345fb055a8dce8ebe14c34ae7510..f994ec7a03097475b643ebf78fa846b87d10bc26 100644 (file)
@@ -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);