diff --git a/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java b/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java index 93413ab6..259d1087 100644 --- a/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java +++ b/apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java @@ -364,12 +364,14 @@ private List getConfigServices() { private Map mergeConfigurations(Map configurations,List configurationChanges) { Map newConfigurations = new HashMap<>(); - if (configurationChanges == null) { - return newConfigurations; - } if(configurations!=null){ Maps.newHashMap(configurations); } + + if (configurationChanges == null) { + return newConfigurations; + } + for (ConfigurationChange change : configurationChanges) { switch (change.getConfigurationChangeType()) { case ADDED: