handle the topic being null