Check for null name pointer