commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (JEXL-314) Comparison NULL values of variables NAME1.NAME2
Date Sun, 27 Oct 2019 13:26:00 GMT

     [ https://issues.apache.org/jira/browse/JEXL-314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Biestro resolved JEXL-314.
--------------------------------
    Resolution: Fixed

Changeset: fdda2e292fe7d5d558c6cfa00e56f93367f21764
Author:    henrib <henrib@apache.org>
Date:      2019-10-27 14:24
Message:   
JEXL-314: updated test, attempting triggering gitbox/github sync

> Comparison NULL values of variables NAME1.NAME2
> -----------------------------------------------
>
>                 Key: JEXL-314
>                 URL: https://issues.apache.org/jira/browse/JEXL-314
>             Project: Commons JEXL
>          Issue Type: Wish
>    Affects Versions: 3.1
>            Reporter: Osy
>            Priority: Minor
>
> I am adding to my context this NULL variable :
>  
> {code:java}
> jc.set("TVALOGAR.PEPITO", null);
> jexlExp = "TVALOGAR.PEPITO==null?'SIMON':'SIMONAZO'";
> {code}
> 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:
> {code:java}
> jc.set("TVALOGAR", null);
> jexlExp = "TVALOGAR==null?'SIMON':'SIMONAZO'";
> {code}
> *Expression Value :SIMON*
> Is this the expected behaviour? 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message