forked from Mirrors/doipjs
Fix rare null error
This commit is contained in:
parent
8b83dbd8ed
commit
e0502c78bb
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue