@Nullable
public LedgerAccount tryLoadAccount(String acct_name) {
SQLiteDatabase db = MLDB.getReadableDatabase();
- return loadAccount(acct_name);
+ return tryLoadAccount(db, acct_name);
}
@NonNull
public LedgerAccount loadAccount(SQLiteDatabase db, String accName) {
LedgerAccount acc = tryLoadAccount(db, accName);
- if (acc == null) throw new RuntimeException("Unable to load account with name "+accName);
+ if (acc == null) throw new RuntimeException("Unable to load account with name " + accName);
return acc;
}