Null reference Exception unhandled by the user code
<p>I build my solution in visual studio(successfull) and I am trying to run it  but for some reason at the following line of code it was throwing  the exception I went several articles but there was no exact solution how this could be handled </p>

<pre><code>public static int GetCurrentPolicyClassId()
    {
        **int policyClassId = (int) HttpContext.Current.Session[AppConstants.SK_POLICYCLASSID];**
        return policyClassId;
    }
</code></pre>
