Skip to content

Commit

Permalink
Fixes #318, null types inadvertently returned from MvcSiteMapNodeAttr…
Browse files Browse the repository at this point in the history
…ibuteDefinitionProvider.GetTypesFromAssembly() method.
  • Loading branch information
NightOwl888 committed Jun 4, 2014
1 parent 8362424 commit 3fa630e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected virtual IEnumerable<Type> GetTypesFromAssembly(Assembly assembly)
}
catch (ReflectionTypeLoadException ex)
{
return ex.Types;
return ex.Types.Where(t => t != null);
}
}

Expand Down

0 comments on commit 3fa630e

Please sign in to comment.