handle null exception for project

handle null exception for project