Check for null when updating project tree