Hello,
On Umbraco 8.0.2, when trying to render the RTE content in razor view i always get NullReferenceException no matter what i do, debugging through the model i eventually can see the RTE property in visual studio populated with HTML (specifically HtmlString) but once the code execute to get it i get NullReference Exception.. all the below trials failed:
After several debugging i found what the issue is ..
i am using multiple RTEs on the same page, one of them had a typo in the alias name.. the problem is the exception error was blaming a correct RTE for NullReference while leaving the faulty one unmentioned. weird, but that was the fix.
RTE NullReferenceException with Umbraco 8
Hello, On Umbraco 8.0.2, when trying to render the RTE content in razor view i always get NullReferenceException no matter what i do, debugging through the model i eventually can see the RTE property in visual studio populated with HTML (specifically HtmlString) but once the code execute to get it i get NullReference Exception.. all the below trials failed:
Note: Model itself is not null, the template can successfully get other non-rte properties from it.
How to get the content of RTE in umbraco 8?
After several debugging i found what the issue is .. i am using multiple RTEs on the same page, one of them had a typo in the alias name.. the problem is the exception error was blaming a correct RTE for NullReference while leaving the faulty one unmentioned. weird, but that was the fix.
is working on a reply...