Temp fix to unbreak blog post create/edit (working on a better fix)

--HG--
branch : dev
This commit is contained in:
Erik Porter
2010-03-08 14:51:03 -08:00
parent 25faf66875
commit ec62b5e2dd

View File

@@ -40,7 +40,13 @@ namespace Orchard.Core.Common.Handlers {
var method = driverType.GetMethod("GetDisplayRouteValues");
if (method != null) {
return (RouteValueDictionary)method.Invoke(driver, new object[] {contentItem.Get(driverType.BaseType.GetGenericArguments()[0])});
try {
return
(RouteValueDictionary)
method.Invoke(driver,
new object[] {contentItem.Get(driverType.BaseType.GetGenericArguments()[0])});
}
catch {}
}
return null;