fix topic session null pointer bug
update documentation