do not pass null pointer to printf