#17808: Getting 404 after editing the home page.

A content item had a RoutePartRecord but its content type did not have the RoutePart anymore. Null ref ensued.

--HG--
branch : 1.x
This commit is contained in:
Dave Reed 2011-05-16 14:22:12 -07:00
parent b666feda89
commit 7fd4a55a82

View File

@ -100,7 +100,7 @@ namespace Orchard.Core.Routable.Services {
public IEnumerable<IRoutableAspect> GetSimilarPaths(string path) {
return
_contentManager.Query().Join<RoutePartRecord>()
_contentManager.Query<RoutePart, RoutePartRecord>()
.List()
.Select(i => i.As<RoutePart>())
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))