From 53fd5b5f546a468f49e7d54760cd58d0bc65c839 Mon Sep 17 00:00:00 2001 From: Marc Climent Date: Fri, 23 Oct 2015 09:51:47 +0200 Subject: [PATCH] Allow defaults to be null when constructiing TemplateMatcher --- src/Microsoft.AspNet.Routing/Template/TemplateMatcher.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Microsoft.AspNet.Routing/Template/TemplateMatcher.cs b/src/Microsoft.AspNet.Routing/Template/TemplateMatcher.cs index bfa611a2f0..cc32a00f04 100644 --- a/src/Microsoft.AspNet.Routing/Template/TemplateMatcher.cs +++ b/src/Microsoft.AspNet.Routing/Template/TemplateMatcher.cs @@ -25,11 +25,6 @@ namespace Microsoft.AspNet.Routing.Template throw new ArgumentNullException(nameof(template)); } - if (defaults == null) - { - throw new ArgumentNullException(nameof(defaults)); - } - Template = template; Defaults = defaults ?? RouteValueDictionary.Empty; }