I'm trying to assign a session value to a Model Property in Razor view like following
@Html.HiddenFor(model => model.Image, new { @Value = Session["PICTURE"].ToString() })
But this is not working properly , getting following error when session is null
Object reference not set to an instance of an object.