Skip to content

Commit 7531948

Browse files
committed
Add required fix
1 parent 6bdd367 commit 7531948

File tree

1 file changed

+2
-1
lines changed
  • components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl

1 file changed

+2
-1
lines changed

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3757,7 +3757,8 @@ private Map<String, String> getHostWithSchemeMappingForEnvironment(API api, Stri
37573757

37583758
boolean isExternalGateway = false;
37593759
GatewayDeployer gatewayDeployer = null;
3760-
if (api.isInitiatedFromGateway()) {
3760+
if (gatewayConfiguration != null && StringUtils.isNotEmpty(
3761+
gatewayConfiguration.getDiscoveryImplementation()) && api.isInitiatedFromGateway()) {
37613762
Map<String, String> extractedURLs = extractEndpointUrlsForDiscoveredApi(api);
37623763
if (extractedURLs == null) {
37633764
if (StringUtils.containsIgnoreCase(api.getTransports(), APIConstants.HTTP_PROTOCOL)) {

0 commit comments

Comments
 (0)