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

NPE when using globals as query element inputs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.1.0.Final, 6.2.0.Beta1
    • 5.6.0.Final, 6.1.0.CR2
    • None
    • None
    • Hide
      global String foo;
      
      query bar( String x ) ... end 
      
      rule Test
      when
         bar( foo ; ) // NPE here
      then
      end
      
      Show
      global String foo; query bar( String x ) ... end rule Test when bar( foo ; ) // NPE here then end

      Globals cannot be used as actual (input) parameters in queries without throwing a NPE

              mfusco@redhat.com Mario Fusco
              dsotty Davide Sottara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: