dfc: check if xdata is NULL before dumping it