From e0502c78bbc12bc09b56f6dda49c24c9e8c32016 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 7 Oct 2022 10:18:52 +0200 Subject: [PATCH] Fix rare null error --- src/claim.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/claim.js b/src/claim.js index f8298e2..f6d9bfa 100644 --- a/src/claim.js +++ b/src/claim.js @@ -169,6 +169,11 @@ class Claim { } const candidate = def.processURI(this._uri) + // If the candidate could not be processed, continue matching + if (!candidate) { + return true + } + if (candidate.match.isAmbiguous) { // Add to the possible candidates this._matches.push(candidate)