Optional parameter is present(catalogVersions,user) in session in Search Restriction .
(?session.brand) is null or (?session.brand) = {brand}
It throws Restrictions throws error in this case. It expects the "brand" attribute in session.
Any idea will be appreciated. Thanks in advance.