Make ViewComponentTagHelper discovery resilient to null.
This commit is contained in:
parent
385e2523a9
commit
a4a194e273
|
|
@ -62,7 +62,7 @@ namespace Microsoft.CodeAnalysis.Razor
|
|||
var factory = new ViewComponentTagHelperDescriptorFactory(compilation);
|
||||
foreach (var type in types)
|
||||
{
|
||||
if (assemblyNameFilters.Contains(type.ContainingAssembly.Identity.Name))
|
||||
if (assemblyNameFilters == null || assemblyNameFilters.Contains(type.ContainingAssembly.Identity.Name))
|
||||
{
|
||||
var descriptor = factory.CreateDescriptor(type);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue