Exception evaluating OGNL expression : variable !=null

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Exception evaluating OGNL expression : variable !=null

khrizi
I am posting here, because I have tried Stackoverflow and official Thymeleaf Docs but could not find an answer.

I have an error

ERROR [org.thymeleaf.TemplateEngine] (http-/0.0.0.0:8080-3) [THYMELEAF][http-/0.0.0.0:8080-3] Exception processing template "themes/material/html/tabs": Exception evaluating OGNL expression: "tabshtml.generalTab.html"

Here is the code for the hidden version field in the Thymeleaf template:
<material:html html="${tabshtml.generalTab.html}" th-if="${tabshtml.generalTab != null}" />

The problem is that for cases tabshtml.generalTab is null