Getting panics in case a nil knowledgebase is passed to execute or fetch matching rules method
Pandey-SaurabhP opened this issue · 0 comments
Pandey-SaurabhP commented
Describe the bug
We are getting a panic in cases a nil knowledgebase is passed to execute or fetch matching rules method
To Reproduce
Steps to reproduce the behavior:
- Write a unit test
- Create a new instance of the rule engine
- Call the exceute method of the rule engine and with a nil value
- I see that we are getting a panic here
Expected behavior
A clear error message should be thrown so that user can debug properly on what went wrong