Copied to clipboard

Flag this post as spam?

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


  • bob baty-barr 1180 posts 1294 karma points MVP
    Mar 20, 2015 @ 18:09
    bob baty-barr
    0

    Property converters... still error

    Not sure how to communicate this one... i have the Core Property Value converters installed... have a content picker in a nested/grid editor...

    getting the following.

    System.NullReferenceException: Object reference not set to an instance of an object.
    
       at Our.Umbraco.NestedContent.Models.DetachedPublishedProperty.get_HasValue()
    at Umbraco.Web.PublishedPropertyExtension.GetValue[T](IPublishedProperty property, Boolean withDefaultValue, T defaultValue)
    at Umbraco.Web.PublishedContentExtensions.GetPropertyValue[T](IPublishedContent content, String alias, Boolean recurse, Boolean withDefaultValue, T defaultValue)
    at Umbraco.Web.PublishedContentExtensions.GetPropertyValue[T](IPublishedContent content, String alias)
    at ASP._Page_Views_Partials_CarouselItems_cshtml.Execute() in c:\Users\rbaty-barr\Documents\NECBF Presentation\www\Views\Partials\CarouselItems.cshtml:line 63
    the line is this...
    IPublishedContent rotLink = item.GetPropertyValue<IPublishedContent>("carouselContentLink");
  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Mar 20, 2015 @ 23:04
    Matt Brailsford
    101

    Hey Bob,

    This was down to a bug in the nested content package not doing a null check on the HasValue check. I've updated it and released an updated version now if you want to upgrade to that.

    Thanks for trying out NC

    Matt

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Mar 21, 2015 @ 18:13
    Lee Kelleher
    0

    Good work Matt... fast turn around too! :-)

    Hope this helps you Bob.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies