TDQ-9414:fix export csv failed by fix a NPE