NRE on canceled token accounts during setup.

This commit is contained in:
Burak Kaan Köse
2025-02-01 20:43:55 +01:00
parent 3021850fa0
commit 16272fa049

View File

@@ -163,6 +163,9 @@ namespace Wino.Mail.ViewModels
if (creationDialog.State == AccountCreationDialogState.Canceled)
throw new AccountSetupCanceledException();
if (!tokenInformationResponse.IsSuccess)
throw new Exception(tokenInformationResponse.Message);
createdAccount.Address = tokenInformationResponse.Data.AccountAddress;
tokenInformationResponse.ThrowIfFailed();