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...
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
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...
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.