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

NPE when using reserved word "action" as a bound variable, or omitting rule title

    XMLWordPrintable

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Don't use reserved words for bound variable names

      Show
      Don't use reserved words for bound variable names
    • Estimated Difficulty:
      Low

      Description

      The following code using the reserved word "action" causes an NPE:

      rule "Test"
      when
      action : Object()
      then
      System.out.println("A RHS");
      end

      or this code (omitting title):

      rule
      when
      Object()
      then
      System.out.println("A RHS");
      end

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                JustinWick Justin Wick
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: