diff --git a/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java b/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java index ace07c6109..3b3870a13f 100644 --- a/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java +++ b/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java @@ -494,7 +494,7 @@ public synchronized void validateSwaggerTable() { while (swaggerIterator.hasNext()) { String name = swaggerIterator.next(); if (!apiTable.containsKey(name)) { - swaggerTable.remove(name); + swaggerIterator.remove(); } } }