Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Angus 5 posts 75 karma points
    1 week ago
    Angus
    0

    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:

            var prop = content.GetProperty(propertyAlias);
            if (prop != null)
            {...
    

    Is this an appropriate workaround?

    (Umbraco 7.5.11)

    A

  • Steve Borg 27 posts 97 karma points
    1 week ago
    Steve Borg
    0

    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.

  • Angus 28 posts 121 karma points
    7 days ago
    Angus
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft