You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/06/29 08:25:12 UTC
[GitHub] [pulsar] jiazhai commented on issue #4803: Pulsar schema doesn't support null value
jiazhai commented on issue #4803:
URL: https://github.com/apache/pulsar/issues/4803#issuecomment-651011362
Thanks @fmiguelez for the test.
looks from the code, npe happens in stats path(ConsumerStatsRecorderImpl.java), would you like to provide a pull request to fix this issue:
```
@Override
public void updateNumMsgsReceived(Message<?> message) {
if (message != null) {
numMsgsReceived.increment();
numBytesReceived.add(message.getData().length); < === NPE
}
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org