Skip to content

Commit

Permalink
Fix null reference in IdentifierAssignmentsTable (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 12, 2024
1 parent cc97f84 commit 718204d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Model/Table/IdentifierAssignmentsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function assign(
}

// Trigger provisioning, letting errors bubble up (AR-GMR-5)
if(method_exists($EntityTable, "requestProvisioning")) {
if(method_exists($EntityTable, "requestProvisioning") && !empty($entity->id)) {
$this->llog('rule', "AR-GMR-5 Requesting provisioning for $entityType " . $entity->id);
$EntityTable->requestProvisioning(id: $entity->id, context: ProvisioningContextEnum::Automatic);
}
Expand Down

0 comments on commit 718204d

Please sign in to comment.