diff --git a/Teknik/Areas/User/Views/User/ViewProfile.cshtml b/Teknik/Areas/User/Views/User/ViewProfile.cshtml index a2992d5..e0e99a4 100644 --- a/Teknik/Areas/User/Views/User/ViewProfile.cshtml +++ b/Teknik/Areas/User/Views/User/ViewProfile.cshtml @@ -18,14 +18,14 @@ string pgpFingerprint = pgpFingerprint = string.Empty; string pgpFingerprint64 = string.Empty; - if (!string.IsNullOrEmpty(Model.IdentityUserInfo.PGPPublicKey)) + if (!string.IsNullOrEmpty(Model.IdentityUserInfo?.PGPPublicKey)) { - pgpFingerprint = PGP.GetFingerprint(Model.IdentityUserInfo.PGPPublicKey); - pgpFingerprint64 = PGP.GetFingerprint64(Model.IdentityUserInfo.PGPPublicKey); + pgpFingerprint = PGP.GetFingerprint(Model.IdentityUserInfo?.PGPPublicKey); + pgpFingerprint64 = PGP.GetFingerprint64(Model.IdentityUserInfo?.PGPPublicKey); }