Allow defaults to be null when constructiing TemplateMatcher
This commit is contained in:
parent
1fd284c87f
commit
53fd5b5f54
|
|
@ -25,11 +25,6 @@ namespace Microsoft.AspNet.Routing.Template
|
||||||
throw new ArgumentNullException(nameof(template));
|
throw new ArgumentNullException(nameof(template));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaults == null)
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException(nameof(defaults));
|
|
||||||
}
|
|
||||||
|
|
||||||
Template = template;
|
Template = template;
|
||||||
Defaults = defaults ?? RouteValueDictionary.Empty;
|
Defaults = defaults ?? RouteValueDictionary.Empty;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue