-public class UpdateTransactionsTask extends AsyncTask<String, Void, List<TransactionListItem>> {
- protected List<TransactionListItem> doInBackground(String[] filterAccName) {
- Data.backgroundTaskCount.incrementAndGet();
- String profile_uuid = Data.profile.get().getUuid();
+import static net.ktnx.mobileledger.utils.Logger.debug;
+
+public class UpdateTransactionsTask extends AsyncTask<String, Void, String> {
+ protected String doInBackground(String[] filterAccName) {
+ final MobileLedgerProfile profile = Data.profile.getValue();
+ if (profile == null) return "Profile not configured";
+
+ String profile_uuid = profile.getUuid();
+ Data.backgroundTaskStarted();