4
Vote

Search Settings are generating exception when updating other settings

description

I activated search feature and not set it in setting, I receive this log
2013-12-09 20:16:15,050 [27] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - ArgumentNullException thrown from IContentPartDriver by Orchard.Search.Drivers.SearchSettingsPartDriver
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at Orchard.Search.Drivers.SearchSettingsPartDriver.<>c__DisplayClassc.<Editor>b__7()
at Orchard.ContentManagement.Drivers.ContentPartDriver1.<>c__DisplayClassf.<ContentShape>b__e(BuildShapeContext ctx)
at Orchard.ContentManagement.Drivers.ContentPartDriver
1.<>c__DisplayClass15.<ContentShapeImplementation>b__14(BuildShapeContext ctx)
at Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType)
at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable1 events, Action1 dispatch, ILogger logger)


I attached a poor man's patch which just tests for null...

file attachments

comments