Fix rare null error

This commit is contained in:
Yarmo Mackenbach 2022-10-07 10:18:52 +02:00
parent 8b83dbd8ed
commit e0502c78bb
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -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)