Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Possible exception when loading content in batch

Found in

EPiServer.Commerce 11.1.0

Fixed in

EPiServer.Commerce 11.2.0

(Or a related package)

Created

Aug 24, 2017

Updated

Oct 19, 2018

Area

Core

State

Closed, Fixed and tested


Description

When browsing certain content, it is possible to get this exception:

[NullReferenceException: Object reference not set to an instance of an object.]
Mediachase.MetaDataPlus.Internal.<DoLoad>d__10.MoveNext() +1567
System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +292
EPiServer.Commerce.Catalog.Provider.Construction.MetaDataContentBuilder.GetMetaObjects(IDictionary`2 metaObjectIdsByClassId, String language) +466
EPiServer.Commerce.Catalog.Provider.Construction.NodeBuilder.ConstructNodes(CatalogNodeDto nodeDto, IDictionary`2 versionForUnpublishedContent, String language) +760
EPiServer.Commerce.Catalog.Provider.CatalogContentLoader.ConstructContent(IList`1 contentLinks, Func`3 createContentFunc) +499
EPiServer.Commerce.Catalog.Provider.CatalogContentLoader.LoadSpecificContentInstances(IList`1 contentLinks, String language) +592
EPiServer.Commerce.Catalog.Provider.CatalogContentProvider.BatchLoad(IList`1 contentLinks, Func`2 dbLoader) +234
EPiServer.Commerce.Catalog.Provider.CatalogContentProvider.LoadContents(IList`1 contentReferences, ILanguageSelector selector) +720
EPiServer.Core.ContentProvider.GetContentBatch(IList`1 batch, ILanguageSelector selector, List`1& contents, Dictionary`2& contentMap) +133
EPiServer.Core.ContentProvider.GetScatteredContents(IEnumerable`1 contentLinks, ILanguageSelector selector) +1005
EPiServer.Core.Internal.ProviderPipelineImplementation.GetItems(ContentProvider provider, IList`1 contentLinks, LoaderOptions loaderOptions) +308
EPiServer.Core.Internal.DefaultContentLoader.GetItems(IEnumerable`1 contentLinks, LoaderOptions loaderOptions) +650
EPiServer.Commerce.Shell.Rest.Query.<GetItemsBatched>d__3.MoveNext() +399
System.Linq.Enumerable.Any(IEnumerable`1 source) +87
EPiServer.Cms.Shell.UI.Rest.ContentQuery.Internal.DefaultContentQueryHelper.FilterAccess(IEnumerable`1 items, AccessLevel requiredAccess) +56
EPiServer.Cms.Shell.UI.Rest.ContentQuery.ContentQueryBase.Filter(IEnumerable`1 items, ContentQueryParameters parameters) +94
EPiServer.Commerce.Shell.Rest.Query.GetChildrenQuery.Filter(IEnumerable`1 items, ContentQueryParameters parameters) +121
EPiServer.Cms.Shell.UI.Rest.ContentQuery.ContentQueryBase.ExecuteQuery(IQueryParameters parameters) +65
EPiServer.Cms.Shell.UI.Rest.Internal.ContentStore.Get(ContentReference id, String query, ContentReference referenceId, ContentReference[] references, String[] typeIdentifiers, Nullable`1 allLanguages, IEnumerable`1 sortColumns, ItemRange range) +440