Skip to content

Commit

Permalink
Merge pull request #230 from Raideeen/master
Browse files Browse the repository at this point in the history
Fix Null Reference Bug in Application Permissions Details
  • Loading branch information
vletoux authored Jul 19, 2024
2 parents 933316d + e525d31 commit 67c1e82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions template/ReportCloudMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ function azureRole(value, row) {
//https://docs.microsoft.com/en-us/graph/permissions-reference
function permissionFormatter(value, row) {
var mark = "";
// Gracefully handle null values
if (value == null) {
console.log("Null value in permissionFormatter", row);
return "N/A";
}
if (value.startsWith("User.")) {
mark = "user-permissions";
}
Expand Down

0 comments on commit 67c1e82

Please sign in to comment.