Throw on null terms in term trie (relates to MPSCR-40)

For more clear errors stemming from usage of constraints with null values, which ain't handled
This commit is contained in:
Grigorii Kirgizov 2020-02-11 20:22:08 +03:00
parent 2aeadaf63f
commit f9602c8bbf
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class ClassicTermTrie<T> : TermTrie<T> {
WILDCARD
} else {
term.symbol()
term.symbol() ?: throw NullPointerException("term symbol can't be null")
}
}