nacos-custom-environment-plugin vaule null,ConcurrentModificationException
Describe the bug
nacos-custom-environment-plugin
location:com.alibaba.nacos.plugin.environment.CustomEnvironmentPluginManager#getCustomValues
An exception occurs when the value is null
Expected behavior It can be removed normally when the value is null
Actually behavior exception
Desktop (please complete the following information):
- Version nacos-server 2.4.3 , nacos-client 2.4.3
I start up with 2.4.3, can't reproduce this problem. Can you provide more information such as what's the step of reproduce.
i use jdk: 1.8 Can be reproduced,Try to write the plugin code like this
The Value of the Map needs to have a null value
Why you put null value in your plugin?
Why you put
nullvalue in your plugin?
I want to delete this property,i know can use "" but I used null for the first time
I see. It is not the null problem ,but the operation in for loop.
Welcome submit PR to fix this problem by first loop found the null value keys and then removeAll keys which null value.
plz assign to me
@KomachiSion 我把这个 bug 修复了~