{"action":"closed","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5302","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5302/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5302/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5302/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/5302","id":78291505,"number":5302,"title":"Orchard Layouts Problems with Element Blueprint Based off of Content Parts","user":{"login":"emeraldarcher","id":5711889,"avatar_url":"https://avatars.githubusercontent.com/u/5711889?v=3","gravatar_id":"","url":"https://api.github.com/users/emeraldarcher","html_url":"https://github.com/emeraldarcher","followers_url":"https://api.github.com/users/emeraldarcher/followers","following_url":"https://api.github.com/users/emeraldarcher/following{/other_user}","gists_url":"https://api.github.com/users/emeraldarcher/gists{/gist_id}","starred_url":"https://api.github.com/users/emeraldarcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emeraldarcher/subscriptions","organizations_url":"https://api.github.com/users/emeraldarcher/orgs","repos_url":"https://api.github.com/users/emeraldarcher/repos","events_url":"https://api.github.com/users/emeraldarcher/events{/privacy}","received_events_url":"https://api.github.com/users/emeraldarcher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T23:28:17Z","updated_at":"2015-05-19T23:30:46Z","closed_at":"2015-05-19T23:30:46Z","body":"I get the following error in the logs when I try to create an Element Blueprint from my custom Part.\r\n\r\n2015-05-19 17:21:49,265 [180] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - Default - NullReferenceException thrown from IContentPartDriver by Orchard.Layouts.Drivers.LayoutPartDriver\r\n http://localhost:27547/Admin/Contents/Create/Layout\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Orchard.Layouts.Services.ElementFactory.Activate(ElementDescriptor descriptor, Action`1 initialize)\r\n   at Orchard.Layouts.Services.ElementManager.ActivateElement(ElementDescriptor descriptor, Action`1 initialize)\r\n   at Orchard.Layouts.Providers.BlueprintElementHarvester.<HarvestElements>b__8(<>f__AnonymousType7`2 <>h__TransparentIdentifier1)\r\n   at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)\r\n   at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)\r\n   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Orchard.Layouts.Providers.BlueprintElementHarvester.HarvestElements(HarvestElementsContext context)\r\n   at Orchard.Layouts.Services.ElementManager.<>c__DisplayClass7.<>c__DisplayClassc.<DescribeElements>b__3(ElementHarvester harvester)\r\n   at System.Linq.Enumerable.<SelectManyIterator>d__31`3.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Orchard.Layouts.Services.ElementManager.<>c__DisplayClass7.<DescribeElements>b__2(AcquireContext`1 acquireContext)\r\n   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 57\r\n   at Orchard.Caching.Cache`2.<>c__DisplayClass2.<Get>b__0(TKey k) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 19\r\n   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)\r\n   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 17\r\n   at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\DefaultCacheManager.cs:line 33\r\n   at Orchard.Layouts.Services.ElementManager.DescribeElements(DescribeElementsContext context)\r\n   at Orchard.Layouts.Services.ElementManager.<>c__DisplayClass10.<GetCategories>b__e(AcquireContext`1 acquireContext)\r\n   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 57\r\n   at Orchard.Caching.Cache`2.<>c__DisplayClass2.<Get>b__0(TKey k) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 19\r\n   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)\r\n   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\Cache.cs:line 17\r\n   at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func`2 acquire) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\Caching\\DefaultCacheManager.cs:line 33\r\n   at Orchard.Layouts.Services.ElementManager.GetCategories(DescribeElementsContext context)\r\n   at Orchard.Layouts.Services.LayoutEditorFactory.GetCategories(IContent content)\r\n   at Orchard.Layouts.Services.LayoutEditorFactory.GetConfigurationData(IContent content)\r\n   at Orchard.Layouts.Services.LayoutEditorFactory.Create(String layoutData, String sessionKey, Nullable`1 templateId, IContent content)\r\n   at Orchard.Layouts.Services.LayoutEditorFactory.Create(LayoutPart layoutPart)\r\n   at Orchard.Layouts.Drivers.LayoutPartDriver.<>c__DisplayClass12.<Editor>b__11()\r\n   at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass15.<ContentShape>b__14(BuildShapeContext ctx) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\ContentManagement\\Drivers\\ContentPartDriver.cs:line 196\r\n   at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass1b.<ContentShapeImplementation>b__1a(BuildShapeContext ctx) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\ContentManagement\\Drivers\\ContentPartDriver.cs:line 205\r\n   at Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\ContentManagement\\Drivers\\ContentShapeResult.cs:line 45\r\n   at Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildEditorContext context) in z:\\Builds\\work\\bd725928c3da365b\\src\\Orchard\\ContentManagement\\Drivers\\ContentShapeResult.cs:line 25\r\n   at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClassd.<BuildEditor>b__c(IContentPartDriver driver) in z:\\Builds\\work\\"}}