GitHub user huxihx opened a pull request: https://github.com/apache/kafka/pull/4327
KAFKA-6370: KafkaMetricsGroup.toScope should filter out tags null value KafkaMetricsGroup.toScope should filter out tags with value of `null` to avoid NullPointerException thrown. *More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers.* *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) You can merge this pull request into a Git repository by running: $ git pull https://github.com/huxihx/kafka KAFKA-6370 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4327.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4327 ---- commit 9eec15c5f231cb6c5ec17cc62783031775d69b74 Author: huxihx <huxi...@hotmail.com> Date: 2017-12-15T08:05:52Z KAFKA-6370: KafkaMetricsGroup.toScope should filter out tags with value of `null` to avoid NullPointerException thrown. ---- ---