Added missing xx pointer check