Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Despite all of these checks passing as true
!string.IsNullOrEmpty(item.Image.ToString()) && item.HasProperty("Image") && item.HasValue("Image")
Why do I still get "Cannot perform runtime binding on a null reference" exception when accessing the Image property:
item.Image
Long day - perhaps missing something obvious?
Hey Simon,
I'm guessing maybe that you should be referencing item.image (lowercase) instead of item.Image.
I think you should start with item.HasProp and item.HasValue before you actually try to do something with the value.
@Douglas I did try that and no joy
@Sebastiaan - Thanks, the following sorted the issue
item.HasProp("Image") && item.HasValue("Image") && !string.IsNullOrEmpty(item.Image.ToString())
is working on a reply...
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.
Continue discussion
Cannot perform runtime binding on a null reference on MediaPicker Property
Despite all of these checks passing as true
Why do I still get "Cannot perform runtime binding on a null reference" exception when accessing the Image property:
Long day - perhaps missing something obvious?
Hey Simon,
I'm guessing maybe that you should be referencing item.image (lowercase) instead of item.Image.
I think you should start with item.HasProp and item.HasValue before you actually try to do something with the value.
@Douglas I did try that and no joy
@Sebastiaan - Thanks, the following sorted the issue
is working on a reply...
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.