Skip to content

Commit

Permalink
Merge pull request #6986 from mpmadhavig/master
Browse files Browse the repository at this point in the history
Add safety null check for app edit
  • Loading branch information
mpmadhavig authored Oct 15, 2024
2 parents dab42d9 + 3c65c53 commit 4c02d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-comics-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.applications.v1": patch
---

Fix NPE in connection->connected app->view app path.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class ApplicationManagementUtils {

public static isApplicationOutdated(applicationVersion: string, grantTypes?: string[]): boolean {

if (applicationVersion != undefined
if (applicationVersion && grantTypes
&& grantTypes.includes(ApplicationManagementConstants.CLIENT_CREDENTIALS_GRANT)) {

const appVersionArray: number[] = applicationVersion?.match(/\d+/g).map(Number);
Expand Down

0 comments on commit 4c02d34

Please sign in to comment.