Copied to clipboard

Flag this post as spam?

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


  • Tom Madden 205 posts 272 karma points c-trib
    Aug 26, 2015 @ 10:30
    Tom Madden
    0

    item.GetValue throws and exception if the property doesn't exist

    it would be better if GetValue returned a null if the property didn't exist. I had to add a try catch around this call to get round this

    You can't check for it being null or empty because it doesn't get that far

    e.g. this doesn't help

    var item = Model.Items.ElementAt(0);
    var foo = String.IsNullOrEmpty(item.GetValue<string>("bar")) ? item.GetValue<string>("bar") : "";
    

    many thanks

    Tom

  • Dan Evans 599 posts 950 karma points
    Sep 23, 2015 @ 10:10
    Dan Evans
    0

    Did you ever solve this?

  • Tom Madden 205 posts 272 karma points c-trib
    Sep 23, 2015 @ 10:31
    Tom Madden
    0

    Hi,

    this is fixed in the source code on Github from a commit on 24th July, I grabbed it from there and it did solve the problem.

    HTH

    t

  • Dan Evans 599 posts 950 karma points
    Sep 23, 2015 @ 10:46
    Dan Evans
    0

    Any idea when this will be released as an final update?

Please Sign in or register to post replies

Write your reply to:

Draft