From f079f3d66bd6d3dd2eaeb2b14168f049ebaa5d00 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 18 Feb 2019 16:29:57 +1100 Subject: [PATCH] Fixes a null ref if a url provider returns null --- src/Umbraco.Web/Routing/UrlProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/UrlProvider.cs b/src/Umbraco.Web/Routing/UrlProvider.cs index da64d46046..0662d46f49 100644 --- a/src/Umbraco.Web/Routing/UrlProvider.cs +++ b/src/Umbraco.Web/Routing/UrlProvider.cs @@ -246,7 +246,7 @@ namespace Umbraco.Web.Routing /// public IEnumerable GetOtherUrls(int id, Uri current) { - return _urlProviders.SelectMany(provider => provider.GetOtherUrls(_umbracoContext, id, current)); + return _urlProviders.SelectMany(provider => provider.GetOtherUrls(_umbracoContext, id, current) ?? Enumerable.Empty()); } #endregion