Remote Event receiver TokenHelper.CreateAppEventClientContext returns null

I have implemented SharePoint Online Remote event receiver. I am not able to get the value of TokenHelper.CreateAppEventClientContext(properties, false)) as it is returning null.
How can I fix this?