NullPointerException when using env() function with LIKE operator in CSS filters

Description

Comparing env() function with LIKE operator throughs java.lang.NullPointerException

whereas strict comparison works fine:

Environment

None

Activity

Show:
Yauheni Pashyvalau
November 22, 2018, 5:27 PM

Adding a default value did not help.
Here is the stack trace:

Ian Turton
November 22, 2018, 5:31 PM

https://osgeo-org.atlassian.net/browse/GEOT-5920 should have allowed the use of functions there.

Andrea Aime
November 29, 2018, 6:37 PM

Tomorrow's nightly builds should contain a fix, if you want to try it out:
https://build.geoserver.org/geoserver/2.14.x/
(the fix is in the core geoserver package, not in the CSS plugin, so you'll have to get everything from the nightly)

Yauheni Pashyvalau
December 17, 2018, 10:28 PM

I've tried out the nightly build and it works for me now. Thanks.

Andrea Aime
December 18, 2018, 9:52 AM

Thanks for letting us know!

Assignee

Andrea Aime

Reporter

Yauheni Pashyvalau

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure