diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs index f1aebafc64..73198c93bc 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs @@ -60,7 +60,7 @@ public class SuiteCommand : IConsoleCommand, ITransientDependency #if !DEBUG var loginInfo = await _authService.GetLoginInfoAsync(); - if (string.IsNullOrEmpty(loginInfo.Organization)) + if (string.IsNullOrEmpty(loginInfo?.Organization)) { throw new CliUsageException("Please login with your account."); } @@ -547,4 +547,4 @@ public class SuiteCommand : IConsoleCommand, ITransientDependency } } } -} \ No newline at end of file +}