Browse Source

Update SuiteCommand.cs

pull/14207/head
Yunus Emre Kalkan 4 years ago
committed by GitHub
parent
commit
1755f99871
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/SuiteCommand.cs

4
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
}
}
}
}
}

Loading…
Cancel
Save