fix null pointer for comparator xml out