mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-15 20:52:16 -04:00
exception handling work
This commit is contained in:
parent
1b7ac31085
commit
cbac96de99
9 changed files with 24 additions and 21 deletions
|
@ -56,7 +56,7 @@ class AccountRecordCubit extends DefaultDHTRecordCubit<AccountRecordState> {
|
|||
Future<void> _updateAccountAsync(
|
||||
AccountSpec accountSpec, Future<void> Function() onSuccess) async {
|
||||
var changed = false;
|
||||
await record.eventualUpdateProtobuf(proto.Account.fromBuffer, (old) async {
|
||||
await record?.eventualUpdateProtobuf(proto.Account.fromBuffer, (old) async {
|
||||
changed = false;
|
||||
if (old == null) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue