Fix Weight::create() to check scheme name is known
commitb563cb0237aa0c061b1b41e9e6fe152bd8317228
authorOlly Betts <olly@survex.com>
Mon, 24 Jun 2024 01:06:56 +0000 (24 13:06 +1200)
committerOlly Betts <olly@survex.com>
Mon, 24 Jun 2024 01:06:56 +0000 (24 13:06 +1200)
tree1414097b1d1219636b8d55290bfeee31679f213a
parent564a0621534e4f80e2c636de8605bc91dcd305f1
Fix Weight::create() to check scheme name is known

We now throw Xapian::InvalidArgumentError if it isn't instead of
dereferencing a NULL pointer.
xapian-core/tests/api_weight.cc
xapian-core/weight/weight.cc