From 16272fa049a43afa330ba354f0174c1703729679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sat, 1 Feb 2025 20:43:55 +0100 Subject: [PATCH] NRE on canceled token accounts during setup. --- Wino.Mail.ViewModels/AccountManagementViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Wino.Mail.ViewModels/AccountManagementViewModel.cs b/Wino.Mail.ViewModels/AccountManagementViewModel.cs index 03e483de..4495cd37 100644 --- a/Wino.Mail.ViewModels/AccountManagementViewModel.cs +++ b/Wino.Mail.ViewModels/AccountManagementViewModel.cs @@ -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();