# {{ request\_contact }} variable returning error.

**URL:** <https://community.hubspot.com/t/request-contact-variable-returning-error/38316>\
**Category:** CMS Development\
**Created:** [June 3, 2021, 2:33am UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316 "2021-06-03T02:33:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afdallah\_arafat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afdallah_arafat/32/77254_2.png) [@afdallah\_arafat](https://community.hubspot.com/u/afdallah_arafat)\
**Post date:** [June 3, 2021, 2:33am UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316/1 "2021-06-03T02:33:11Z")

</div>

Hi there,  
**{{ request\_contact }}** variable suddenly not working, and give me this error message  
_`InterpretException: Error resolving expression [request_contact]: NullPointerException:`_

It used to work and my template has been using that variable for so long and had no issue. I wonder is there a new update (breaking changes) to the HubSpot [variables](https://developers.hubspot.com/docs/cms/hubl/variables) or I missed out on something.

> **[Screenshot](https://prnt.sc/13sg4xk)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![narmstrong](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/narmstrong/32/44334_2.png) [@narmstrong](https://community.hubspot.com/u/narmstrong)\
**Post date:** [June 3, 2021, 2:14pm UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316/2 "2021-06-03T14:14:25Z")

</div>

Hello,

**request\_contact** is a dictionary I believe. I think you may need to specify what you are requesting. eg **{{request\_contact.is\_logged\_in}}**

What is it you are trying to do exactly?

---

<div class="post-metadata">

**Author:** ![afdallah\_arafat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afdallah_arafat/32/77254_2.png) [@afdallah\_arafat](https://community.hubspot.com/u/afdallah_arafat)\
**Post date:** [June 4, 2021, 2:09am UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316/3 "2021-06-04T02:09:52Z")

</div>

Hi @narmstrong narmstrong.  
Actually, in my code, I use **request\_contact.is\_logged\_in** to display content based on user login status. It threw the same error message. I don’t think it’s because I call the dictionary. Here is the actual code. [\<!-- templateType: global\_partial label: Website header--\>{% import '. - Pastebin.com](https://pastebin.com/wkwHsC5X)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 4, 2021, 2:09pm UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316/4 "2021-06-04T14:09:43Z")

</div>

Hi [@afdallah\_arafat](https://community.hubspot.com/t5/user/viewprofilepage/user-id/173506) ,

I would try changing that if statement to just looking for **request\_contact.is\_logged\_in** and maybe think more along the lines of is it euqal to true or false

**{% if request\_contact.is\_logged\_in == true %}**

---

<div class="post-metadata">

**Author:** ![afdallah\_arafat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afdallah_arafat/32/77254_2.png) [@afdallah\_arafat](https://community.hubspot.com/u/afdallah_arafat)\
**Post date:** [June 7, 2021, 1:30pm UTC](https://community.hubspot.com/t/request-contact-variable-returning-error/38316/5 "2021-06-07T13:30:56Z")

</div>

I tested on the other day it magically works. Not sure what was internally happened with Hubspot.
