You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a problem when trying to get the value with item.GetVortoValue("header") from an empty VortoTextString field. It happens both with new and existing nodes.
Stacktrace:
Header = item.GetVortoValue<string>("header");
[NullReferenceException: Object reference not set to an instance of an object.]
Our.Umbraco.Vorto.Extensions.IPublishedContentExtensions.DoInnerGetVortoValue(IPublishedContent content, String propertyAlias, String cultureName, Boolean recursive, T defaultValue) +223
Our.Umbraco.Vorto.Extensions.IPublishedContentExtensions.GetVortoValue(IPublishedContent content, String propertyAlias, String cultureName, Boolean recursive, T defaultValue, String fallbackCultureName) +115
We can see in the umbraco.config cache that only the dtdguid field exists for the property:
We have a problem when trying to get the value with item.GetVortoValue("header") from an empty VortoTextString field. It happens both with new and existing nodes.
Stacktrace:
We can see in the umbraco.config cache that only the dtdguid field exists for the property:
When we add text to the fields it works fine.
We are using version 1.5 from nuget and Umbraco 7.4.1.
Is it the intention that one should always use
item.HasVortoValue("header")
first? I thinkGetVortoValue()
should return null when there is no value.The text was updated successfully, but these errors were encountered: