Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7443

null-safe dereferencing doesn't affect with "in", "not in" and "contains"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.39.0.Final
    • 8.38.0.Final
    • executable model
    • None
    • 2023 Week 18-20 (from May 1)
    • 1
    • NEW
    • NEW
    • ---
    • ---

    Description

      Issue Description:

      In exec-model, null-safe dereferencing "!." doesn't affect with "in" and "not in"

      for example,

      when
        $p : Person( address!.city in ("Milan", "Tokyo") )
      

      doesn't generate null-check, so fails at runtime with NPE.

      Acceptance Criteria:

      Do null-check with "in" and "not in"

      Attachments

        Activity

          People

            rhn-support-tkobayas Toshiya Kobayashi
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: