Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nil check for knowledge base inside execute and fetch matching rule methods #396

Closed
wants to merge 2 commits into from

Conversation

Pandey-SaurabhP
Copy link

passing a nil knowledgebase to exceute or fetch matching rules method was resulting in a panic which is little hard to find, adding a nil check for both of these methods to throw proper error in case a nil kb is passed

added unit tests for the same to verify the fix

passing a nil knowledgebase to exceute or fetch matching rules method
was resulting in a panic which took some time to find, adding a nil
check for both of these methods to throw proper error in this case

added unit tests for the same
@Pandey-SaurabhP
Copy link
Author

fixes #397

@newm4n
Copy link
Member

newm4n commented Aug 29, 2023

Hi @Pandey-SaurabhP ,

I have read your changes and completely understand the Idea. I try to merge your code but it seems to fail. Its not your fault because your code pull request based on the code base that gone through big change.

However, I have copied your code and merge it in. Its now in master but not yet released. It will be released ASAP.
Im sorry for cluttering your grule-rule-engine fork for my rekless attempt to merge the big change previously.

@newm4n newm4n closed this Aug 29, 2023
@Pandey-SaurabhP
Copy link
Author

thanks :)

@sunilgandipadala
Copy link

fixes #397

Hi @Pandey-SaurabhP ,

By this fix, can we able to find the causing error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants