Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1337

NPE when used a bind variable of a pattern using the clause "from" in a next pattern, also using "from"

XMLWordPrintable

      Rules like this bellow generated NPE when business-central is parsing it:

      rule "ToyWithoutName "

      dialect "java"
      when
      $father: Father()
      $kid: Kid() from $father.kids
      $toy: Toy(name == null) from $kid.toys

      then
      System.out.println("blabla");
      end

      Version-Release number of selected component (if applicable):
      6.0.3

      How reproducible:

      Steps to Reproduce:
      1. add as dependency the attached jar in a project
      2. push the attach role to the git repository where the project is
      3. click on Project Authoring - business-central will try to parse the rule for verification and will generated the exception (actually hidden by the GenericPortableException )

      Actual results:
      GenericPortableException

      Expected results:
      No exception, the rule should be opened

        1. kidRule.rdrl.rdrl
          0.3 kB
          Alessandro Lazarotti

              manstis@redhat.com Michael Anstis
              rhn-support-alazarot Alessandro Lazarotti
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Zuzka Krejčová Zuzka Krejčová (Inactive)
              Kris Verlaenen, Rajesh Rajasekaran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: