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

NPE when using globals as query element inputs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: