fix issue #1
assert non-nullity of ListenerMetadata's parameters
fix issue #3