check a pointer before using it

.gitlab-ci.yml not found in this commit