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

JoinNode and NotNode with empty binder throw exception with getConstraints()

    XMLWordPrintable

    Details

      Description

      Currently it is not possible to check if binder is null or not and getConstraints throws NPE if it is.

      Simple sanity check in getContraints would fix it (will be fixed in 3.0.x branch).

      Sample for reproducing
      final JoinNode joinNode = new JoinNode( 1,
      this.tupleSource,
      this.objectSource, null);
      joinNode.getConstraints(); // Throws NPE

      final NotNode notNode = new NotNode( 1,
      this.tupleSource,
      this.objectSource, null);
      notNode.getConstraints(); // throws NPE

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mark.proctor Mark Proctor
                  Reporter:
                  ahtik Ahti Kitsik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 15 minutes
                    15m
                    Remaining:
                    Remaining Estimate - 15 minutes
                    15m
                    Logged:
                    Time Spent - Not Specified
                    Not Specified