project.version might be null so add a check for it