Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null expression not evaluating #10

Open
vishalkumarnl opened this issue Nov 27, 2019 · 2 comments
Open

null expression not evaluating #10

vishalkumarnl opened this issue Nov 27, 2019 · 2 comments

Comments

@vishalkumarnl
Copy link

suppose employe.id = null and expression = "employe.id ? true : false"
if I am trying to evaluate the above expression using SpelExpressionEvaluator.compile(expression) function call. It returns NullPointer exception which was not happening in 0.2.5

@benmarch
Copy link
Owner

benmarch commented Dec 2, 2019

Hmm, let me take a look and get back to you. Can you provide a bit more code including the context and locals?

@Raccoonwao
Copy link

I have come to the same issue. Any possible workaround or solution is appreciated.

Here is another simple example throwing the exception

var spel2js = require("[email protected]") // replace this 0.2.6 and it works
var r = spel2js.SpelExpressionEvaluator.compile("X == 1")
var row = { X : null, Y: 1.0 }
r.eval(row)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants