Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3396

In EQUALITY mode, using a variable bound to a null expression in the RHS generates a NPE

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Hide

      rule "Test" when Bean( $f : field ) then System.out.println( $f ); end
      Assuming field is null, (ii) the engine is in EQUALITY mode

      Show
      rule "Test" when Bean( $f : field ) then System.out.println( $f ); end Assuming field is null, (ii) the engine is in EQUALITY mode
    • Workaround Exists
    • Hide

      Bind a variable to the field's containing object and use the appropriate getter

      Show
      Bind a variable to the field's containing object and use the appropriate getter

    Description

      When the engine is in EQUALITY mode and a var is bound to a null expression (e.g. a field), using that var in the RHS will generate a NPE

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            dsotty Davide Sottara (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty