Fixed broken tests
This commit is contained in:
parent
9f3bdaa1ce
commit
7d91b1bdb7
|
@ -66,7 +66,7 @@ namespace NzbDrone.Api.Mapping
|
||||||
|
|
||||||
dynamic lazy = conventionInfo.SourceProp.Value;
|
dynamic lazy = conventionInfo.SourceProp.Value;
|
||||||
|
|
||||||
if (lazy.IsLoaded)
|
if (lazy.IsLoaded && lazy.Value != null)
|
||||||
{
|
{
|
||||||
if (conventionInfo.TargetProp.Type.IsAssignableFrom(sourceArgument))
|
if (conventionInfo.TargetProp.Type.IsAssignableFrom(sourceArgument))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue