#19723: ContentType can be null in some conditions

Work Item: 19723

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-05-17 10:05:07 -07:00
parent 3acae64d72
commit f41f90e2d0

View File

@@ -476,7 +476,7 @@ namespace Orchard.ContentManagement {
// produce root record to determine the model id
contentItem.VersionRecord = new ContentItemVersionRecord {
ContentItemRecord = new ContentItemRecord {
ContentType = AcquireContentTypeRecord(contentItem.ContentType)
},
Number = 1,
Latest = true,