diff --git a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java index dd7cbccb9a95..3b20d3818def 100755 --- a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java +++ b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtils.java @@ -205,9 +205,10 @@ public static API updateApi(API originalAPI, APIDTO apiDtoToUpdate, APIProvider public static JSONObject updateCustomBackend(API api, APIProvider apiProvider, String endpointType, InputStream customBackend, String contentDecomp) throws APIManagementException { String fileName = getFileNameFromContentDisposition(contentDecomp); - if (fileName == null) + if (fileName == null) { throw new APIManagementException( "Error when retrieving Custom Backend file name of API: " + api.getId().getApiName()); + } String seqName = APIUtil.getCustomBackendName(api.getUuid(), endpointType); String customBackendUUID = UUID.randomUUID().toString(); apiProvider.updateCustomBackend(api, endpointType, customBackend, seqName, customBackendUUID);