error on .contains() when value is null

error on .contains() when value is null

Hi Zoho

I have the following script :

htmlpage test_page(Var01)
displayname = "test page"
content
<%{
if ((input. Var01 .contains("Yearly"))) {
test=1;}
    %> <%=test%>
<%}%>

When Var01 is null, the .contains function return an error and will not load the page:


Error details:
Error in executing test_page view script.
Error.
Error in executing IF rule : Error in executing If condition.
Error evaluating Boolean expression :
Error evaluating BOOLEAN expression :
The value of variable Var01 is null.



Please fix this (if the var is null it obviously does not contain anything, and having to add "if not null" before the .contain makes it very annoying to use)


Thanks

Ravid