Fixed null pointer in topics.