Skip to content

Commit

Permalink
Add instanceof check to isEndpointExist function
Browse files Browse the repository at this point in the history
  • Loading branch information
thisaltennakoon committed Mar 21, 2024
1 parent 1f60533 commit 174fee5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ public boolean isEndpointExist(String endpointName) throws EndpointAdminExceptio
lock.lock();
assertNameNotEmpty(endpointName);
log.debug("Check Endpoint Existence : " + endpointName + " in the configuration");
return getSynapseConfiguration().getLocalRegistry().containsKey(endpointName.trim());
return getSynapseConfiguration().getLocalRegistry().get(endpointName.trim()) instanceof Endpoint;
} catch (SynapseException syne) {
handleFault("Unable to check existence ", syne);
} finally {
Expand Down

0 comments on commit 174fee5

Please sign in to comment.