Skip to content

Commit

Permalink
Fix NPE app update
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Apr 25, 2024
1 parent f92f7de commit f30221b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
import static org.wso2.carbon.identity.application.common.util.IdentityApplicationConstants.Error.UNEXPECTED_SERVER_ERROR;
import static org.wso2.carbon.identity.configuration.mgt.core.search.constant.ConditionType.PrimitiveOperator.EQUALS;
import static org.wso2.carbon.identity.cors.mgt.core.constant.ErrorMessages.ERROR_CODE_INVALID_APP_ID;
import static org.wso2.carbon.identity.organization.management.service.util.Utils.isLegacyAuthzRuntime;

/**
* Calls internal osgi services to perform server application management related operations.
Expand Down Expand Up @@ -851,7 +852,9 @@ public String createApplication(ApplicationModel applicationModel, String templa
public void patchApplication(String applicationId, ApplicationPatchModel applicationPatchModel) {

ServiceProvider appToUpdate = cloneApplication(applicationId);
restrictRoleAssociationUpdateInOrgAudience(applicationId, applicationPatchModel);
if (!isLegacyAuthzRuntime()) {
restrictRoleAssociationUpdateInOrgAudience(applicationId, applicationPatchModel);
}

// Validate whether application-based outbound provisioning support is enabled.
if (applicationPatchModel != null && applicationPatchModel.getProvisioningConfigurations() != null &&
Expand Down

0 comments on commit f30221b

Please sign in to comment.