It is impossible to get the content of info property. I am getting the following error: Object reference not set to an instance of an object. From the other side, everything works fine by using:
@Umbraco.Field("info", recursive: true)
However, I want to use the first approach. I'd appreciate any help on that.
Error with Model.Content.GetPropertyValue
Here is part of my code:
It is impossible to get the content of
info
property. I am getting the following error:Object reference not set to an instance of an object.
From the other side, everything works fine by using:However, I want to use the first approach. I'd appreciate any help on that.
Hi Ilias,
could it be that your property
info
is everywhere empty so null?You could add
if(!String.IsNullOrEmpty(mTest))
to check if the result is not null or empty.Hope this helps.
/Michaël
The program does not assign any value to mTest since it stops execution. Moreover, I have already mentioned that there is no problem with
is working on a reply...