check for null objects [ci skip]