Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Jan 18, 2021
Mar 09, 2021
Closed, Fixed and tested
This is a fix for an issue where null exception thrown when using ListContentOfContentType.
Steps to reproduce:
var contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>(); var contentModelUsage = ServiceLocator.Current.GetInstance<IContentModelUsage>(); var pageType = contentTypeRepository.Load("FreeTextBlock"); if (pageType != null) { var contentUsages = contentModelUsage.ListContentOfContentType(pageType); // I get crash here }
Expected: run successfully.
Actual: throw null exception.