Skip to content

exception thrown in constraint #187

Description

@joeel1

just noticed, error happend during constraint's runtime evalution will crash nools, and no being handle by error callback, supplied through 'session.match'.

use case:
i) normal constraint - name: Fact name.valid_param == "some value";
-> matched normally
ii) constraint with undefined/null parameters- name: Fact name. == "some value";
-> matched normally
iii) constraint with undefined property of undefined object: Fact name[undefined parameter][undefined child] == "some value";
-> nools crash....

any idea?.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions