Added an is_null check for the response before trying to use it because its possible for this case to occur.
Added an is_null check for the response before trying to use it because its possible for this case to occur.

I’m currentlly intercepting AJAX requests in my APP code and this process STOPS the controller redirect event which causes $resp to be null. A simple check for the null value seems to solve the issue.

Beskhue/CookieTokenAuth