|
@@ -245,7 +245,8 @@ namespace InABox.Core
|
|
|
{
|
|
|
var lic = entity.GetInterfaces()
|
|
|
.FirstOrDefault(x => x.IsConstructedGenericType && x.GetGenericTypeDefinition() == typeof(ILicense<>));
|
|
|
- result[entity] = lic?.GenericTypeArguments.FirstOrDefault();
|
|
|
+ if (lic != null)
|
|
|
+ result[entity] = lic.GenericTypeArguments.FirstOrDefault();
|
|
|
}
|
|
|
|
|
|
return result;
|