[TR-139] Manager should balk at null Index in constructor Created: 14/Sep/10  Updated: 05/Apr/11  Resolved: 14/Sep/10

Status: Resolved
Project: Terrier Core
Component/s: .querying
Affects Version/s: 3.0
Fix Version/s: 3.5

Type: Improvement Priority: Trivial
Reporter: Craig Macdonald Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None

Gene reports an annoying problem, in that Terrier's Manager class doesn't check that the Index passed to it is valid (i.e. not null).

Its trivial to check, and we can then report a more sensible error message than we do currently.

Comment by Craig Macdonald [ 14/Sep/10 ]

Added trivial check in Manager, and a test case for Manager that checks the exception is raised.

Generated at Sat Oct 24 12:40:40 BST 2020 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.