Following an upgrade from Vorto 1.5.3 to 1.6.0, calling GetVortoValue with the recursive parameter set true fails with NullReferenceException (... at line 98 of IPublishedContentExtensions.cs)
Testing for a null value appears to address the issue:
var prop = content.GetProperty(propertyAlias);
if (prop != null)
{...
I'm seeing a similar issue. My IUrlProvider/IContentFinder implementation stopped working and I have had to add HasVortoValue code prior to my GetVortoValue statement.
In my case, a call to HasVortoValue with the recursive parameter set true evaluates true - as expected. However, the subsequent call to GetVortoValue with the recursive parameter set true 'fails' - it doesn't recurse and returns a null value. Testing for a null value in the DoInnerGetVortoValue method in IPublishedContentExtensions.cs as described above appears to fix my issue.
Recursive GetVortoValue -> NullReferenceException
Following an upgrade from Vorto 1.5.3 to 1.6.0, calling GetVortoValue with the recursive parameter set true fails with NullReferenceException (... at line 98 of IPublishedContentExtensions.cs)
Testing for a null value appears to address the issue:
Is this an appropriate workaround?
(Umbraco 7.5.11)
A
I'm seeing a similar issue. My IUrlProvider/IContentFinder implementation stopped working and I have had to add HasVortoValue code prior to my GetVortoValue statement.
Hi Steve,
In my case, a call to HasVortoValue with the recursive parameter set true evaluates true - as expected. However, the subsequent call to GetVortoValue with the recursive parameter set true 'fails' - it doesn't recurse and returns a null value. Testing for a null value in the DoInnerGetVortoValue method in IPublishedContentExtensions.cs as described above appears to fix my issue.
A
is working on a reply...