gaoran10 commented on code in PR #219: URL: https://github.com/apache/pulsar-client-node/pull/219#discussion_r904458120
########## src/Consumer.cc: ########## @@ -63,7 +63,9 @@ void MessageListenerProxy(Napi::Env env, Napi::Function jsCallback, MessageListe Consumer *consumer = data->consumer; delete data; - jsCallback.Call({msg, consumer->Value()}); + if (consumer) { Review Comment: I'm not sure if users lose to handle some messages when the consumer is null. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org