DTGE error when using multiple grid layouts in same grid
Hi,
Using a freshly installed Umbraco CMS 8.6.3 with Doc Type Grid Editor 1.2.3.
I'm getting the following error, when trying to save a content page containing a grid with multiple grid layouts without choosing a layout.
"Object reference not set to an instance of an object."
Please see below for a copy of the stacktrace:
Exception
System.NullReferenceException: Object reference not set to an instance of an object.
ved Our.Umbraco.DocTypeGridEditor.ValueProcessing.DocTypeGridEditorDataValueReference.DeserializeGridValue(String rawJson, IEnumerable`1& dtgeValues)
ved Our.Umbraco.DocTypeGridEditor.ValueProcessing.DocTypeGridEditorDataValueReference.GetReferences(Object value)
ved Umbraco.Core.PropertyEditors.DataValueReferenceFactoryCollection.GetAllReferences(PropertyCollection properties, PropertyEditorCollection propertyEditors) i d:\a\1\s\src\Umbraco.Core\PropertyEditors\DataValueReferenceFactoryCollection.cs:linje 48
ved Umbraco.Core.Persistence.Repositories.Implement.ContentRepositoryBase`3.PersistRelations(TEntity entity) i d:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\ContentRepositoryBase.cs:linje 829
ved Umbraco.Core.Persistence.Repositories.Implement.DocumentRepository.PersistUpdatedItem(IContent entity) i d:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\DocumentRepository.cs:linje 708
ved Umbraco.Core.Cache.DefaultRepositoryCachePolicy`2.Update(TEntity entity, Action`1 persistUpdated) i d:\a\1\s\src\Umbraco.Core\Cache\DefaultRepositoryCachePolicy.cs:linje 128
ved Umbraco.Core.Persistence.Repositories.Implement.RepositoryBase`2.Save(TEntity entity) i d:\a\1\s\src\Umbraco.Core\Persistence\Repositories\Implement\RepositoryBaseOfTIdTEntity.cs:linje 140
ved Umbraco.Core.Services.Implement.ContentService.Save(IContent content, Int32 userId, Boolean raiseEvents) i d:\a\1\s\src\Umbraco.Core\Services\Implement\ContentService.cs:linje 791
ved Umbraco.Web.Editors.ContentController.<>c__DisplayClass29_0.<PostSave>b__0(IContent content) i d:\a\1\s\src\Umbraco.Web\Editors\ContentController.cs:linje 601
ved Umbraco.Web.Editors.ContentController.SaveAndNotify(ContentItemSave contentItem, Func`2 saveMethod, Int32 variantCount, Dictionary`2 notifications, SimpleNotificationModel globalNotifications, String invariantSavedLocalizationKey, String variantSavedLocalizationKey, String cultureForInvariantErrors, Boolean& wasCancelled) i d:\a\1\s\src\Umbraco.Web\Editors\ContentController.cs:linje 893
ved Umbraco.Web.Editors.ContentController.PostSaveInternal(ContentItemSave contentItem, Func`2 saveMethod, Func`2 mapToDisplay) i d:\a\1\s\src\Umbraco.Web\Editors\ContentController.cs:linje 688
ved Umbraco.Web.Editors.ContentController.PostSave(ContentItemSave contentItem) i d:\a\1\s\src\Umbraco.Web\Editors\ContentController.cs:linje 599
ved lambda_method(Closure , Object , Object[] )
ved System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
ved System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
ved System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
DTGE error when using multiple grid layouts in same grid
Hi,
Using a freshly installed Umbraco CMS 8.6.3 with Doc Type Grid Editor 1.2.3.
I'm getting the following error, when trying to save a content page containing a grid with multiple grid layouts without choosing a layout.
"Object reference not set to an instance of an object."
Please see below for a copy of the stacktrace:
I'd would be grateful for any help.
Maybe we should open an issue, if no one knows anything?
Added to issue tracker https://github.com/skttl/umbraco-doc-type-grid-editor/issues/211
is working on a reply...