It maybe has something to do with the User Profile Service Application.
look here: http://www.codeproject.com/Articles/475253/Object-null-reference-error-when-opening-the-Site
According to this article, deleting the user profile service application fixes the error.