kylixs commented on a change in pull request #9083: URL: https://github.com/apache/dubbo/pull/9083#discussion_r734942684
########## File path: dubbo-common/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java ########## @@ -268,7 +269,8 @@ public static void appendRuntimeParameters(Map<String, String> map) { protected void appendMetricsCompatible(Map<String, String> map) { MetricsConfig metricsConfig = getConfigManager().getMetrics().orElse(null); if (metricsConfig != null) { - if (!metricsConfig.getProtocol().equals(PROTOCOL_PROMETHEUS)) { + if (metricsConfig.getProtocol() != null && !StringUtils.isEquals(metricsConfig.getProtocol(), PROTOCOL_PROMETHEUS)) { Review comment: `metricsConfig.getProtocol()` may be null and should not add null value to parameter map -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org