Skip to content

exception thrown in constraint #187

@joeel1

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?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions