mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +00:00
null error fix on isar exchange data cache instance
This commit is contained in:
parent
7e30eed7c0
commit
bc85b97f5f
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ class ExchangeDataLoadingService {
|
||||||
Future<void> loadAll() async {
|
Future<void> loadAll() async {
|
||||||
if (!_locked) {
|
if (!_locked) {
|
||||||
_locked = true;
|
_locked = true;
|
||||||
|
if (_isar == null) {
|
||||||
|
await initDB();
|
||||||
|
}
|
||||||
Logging.instance.log(
|
Logging.instance.log(
|
||||||
"ExchangeDataLoadingService.loadAll starting...",
|
"ExchangeDataLoadingService.loadAll starting...",
|
||||||
level: LogLevel.Info,
|
level: LogLevel.Info,
|
||||||
|
|
Loading…
Reference in a new issue