Avoid decrypt null setting value.

pull/5759/head
maliming 5 years ago committed by GitHub
parent 207df569b6
commit bae1ddbed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@ namespace Volo.Abp.Settings
//TODO: How to implement setting.IsInherited?
var value = await GetOrNullValueFromProvidersAsync(providers, setting);
if (setting.IsEncrypted)
if (value != null && setting.IsEncrypted)
{
value = SettingEncryptionService.Decrypt(setting, value);
}
@ -84,4 +84,4 @@ namespace Volo.Abp.Settings
return null;
}
}
}
}

Loading…
Cancel
Save