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:
parent
2aeadaf63f
commit
f9602c8bbf
|
|
@ -147,7 +147,7 @@ class ClassicTermTrie<T> : TermTrie<T> {
|
|||
WILDCARD
|
||||
|
||||
} else {
|
||||
term.symbol()
|
||||
term.symbol() ?: throw NullPointerException("term symbol can't be null")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue