I’ve just started to get this “Object reference not set to instance of an object” error while trying to update objects in my project. I don’t know exactly what causes the problem but solution is reseting user data.
simply run devenv /resetuserdata
under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE folder.