Browse Source

Avoid decrypt null setting value.

pull/5759/head
maliming 6 years ago
committed by GitHub
parent
commit
bae1ddbed1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingProvider.cs

4
framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingProvider.cs

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