Skip to content

Commit a2b3133

Browse files
committed
bug1822377
1 parent 241381c commit a2b3133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryVaultSettingsFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private string GenerateFileName()
180180
{
181181
string fileName;
182182
string format = "yyyy-MM-ddTHH-mm-ss";
183-
if (string.IsNullOrEmpty(this.Site.Name))
183+
if (null == this.Site || string.IsNullOrEmpty(this.Site.Name))
184184
{
185185
fileName = string.Format("{0}_{1}.VaultCredentials", this.Vault.Name, DateTime.UtcNow.ToString(format));
186186
}

0 commit comments

Comments
 (0)