Copied to clipboard

Flag this post as spam?

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


  • zell 37 posts 90 karma points
    Jun 09, 2015 @ 06:29
    zell
    0

    uQuery.GetNodeIdByUrl throwing Object reference not set to an instance of an object

    why uQuery.GetNodeIdByUrl throwing an error when the URL is not found?

    for example, i pass in a url that doesn't exist surely it should just return a null.

    any other way to find if a URL exists?

    weird.

  • Chris Wilson 100 posts 377 karma points
    Jun 09, 2015 @ 17:29
    Chris Wilson
    0

    Just wrap it in a try/catch.

    Alternatively use:

    library.GetXmlDocumentByUrl(nodeId)
    

    However I suspect that you'd also have to wrap this.

    /Chris

Please Sign in or register to post replies

Write your reply to:

Draft