hhhhzzzj commented on issue #16432: URL: https://github.com/apache/dubbo/issues/16432#issuecomment-5475942531
I checked JavaBeanSerializeUtil.java around Map serialization. When a Map contains a null key (e.g. Collections.singletonMap(null, value)), the serializer attempts to inspect key.getClass() without a null check, resulting in an unexpected exception during serialization. Adding a null check for map keys in JavaBeanSerializeUtil and covering it with a unit test should fix this edge case. Happy to open a PR if the maintainers agree. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
