We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ede064 commit 57bbbfaCopy full SHA for 57bbbfa
src/Umbraco.Web.Website/Routing/NotFoundSelectorPolicy.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Threading.Tasks;
@@ -34,8 +34,8 @@ private Endpoint GetNotFoundEndpoint()
34
{
35
// return the endpoint for the RenderController.Index action.
36
ControllerActionDescriptor descriptor = x.Metadata?.GetMetadata<ControllerActionDescriptor>();
37
- return descriptor.ControllerTypeInfo == typeof(RenderController)
38
- && descriptor.ActionName == nameof(RenderController.Index);
+ return descriptor?.ControllerTypeInfo == typeof(RenderController)
+ && descriptor?.ActionName == nameof(RenderController.Index);
39
});
40
return e;
41
}
0 commit comments