Update SuiteCommand.cs

pull/14207/head
Yunus Emre Kalkan 3 years ago committed by GitHub
parent b35a0f7342
commit 1755f99871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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