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
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.
Just wrap it in a try/catch.
Alternatively use:
library.GetXmlDocumentByUrl(nodeId)
However I suspect that you'd also have to wrap this.
/Chris
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
Just wrap it in a try/catch.
Alternatively use:
However I suspect that you'd also have to wrap this.
/Chris
is working on a reply...