mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04:00
Fixed: Prevent ProviderRepository to deserialize to a null config contract
This commit is contained in:
parent
b637733f68
commit
0e2cc7851f
2 changed files with 1 additions and 2 deletions
|
@ -171,7 +171,6 @@ namespace NzbDrone.Core.ThingiProvider
|
|||
definition.Message = provider.Message;
|
||||
}
|
||||
|
||||
//TODO: Remove providers even if the ConfigContract can't be deserialized (this will fail to remove providers if the settings can't be deserialized).
|
||||
private void RemoveMissingImplementations()
|
||||
{
|
||||
var storedProvider = _providerRepository.All();
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace NzbDrone.Core.ThingiProvider
|
|||
var item = parser(reader);
|
||||
var impType = typeof(IProviderConfig).Assembly.FindTypeByName(item.ConfigContract);
|
||||
|
||||
if (body.IsNullOrWhiteSpace())
|
||||
if (body.IsNullOrWhiteSpace() || impType == null)
|
||||
{
|
||||
item.Settings = NullConfig.Instance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue