add exception handle when project is null
stop invoke api when project is null