Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-314

Comparison NULL values of variables NAME1.NAME2

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None

    Description

      I am adding to my context this NULL variable :

       

      jc.set("TVALOGAR.PEPITO", null);
      jexlExp = "TVALOGAR.PEPITO==null?'SIMON':'SIMONAZO'";
      

      After evaluate the jexlExp I get the error:

      Exception in thread "main" org.apache.commons.jexl3.JexlException$Variable: com.expre.test.TestJexl.main@1:1 null value variable TVALOGAR.PEPITO

       

      This is not happening If I am using only a simple variable name:

      jc.set("TVALOGAR", null);
      jexlExp = "TVALOGAR==null?'SIMON':'SIMONAZO'";
      
      

      Expression Value :SIMON

      Is this the expected behaviour? 

       

      Attachments

        Activity

          People

            henrib Henri Biestro
            osymad Osy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: