Added some needed null pointer checks for Global Analysis