PebbleTemplates / pebble

Java Template Engine
https://pebbletemplates.io
BSD 3-Clause "New" or "Revised" License
1.09k stars 166 forks source link

Fix the null pointer exception on the replace filter #650

Closed fabriceci closed 1 year ago

fabriceci commented 1 year ago

There is a check missing before doing toString() on the input.

ebussieres commented 1 year ago

Can you add a unit test for this case please ?

Thank you for your contribution

fabriceci commented 1 year ago

Of course, it's done.