Fix exception when deleting projects that are associated with policies

Fixes #1852

Signed-off-by: nscuro <nscuro@protonmail.com>
This commit is contained in:
nscuro 2022-08-03 21:57:46 +02:00
parent 1933eab2e2
commit 99d48e8c46
No known key found for this signature in database
GPG key ID: 985ADB40F06304B3
4 changed files with 69 additions and 0 deletions

View file

@ -605,6 +605,7 @@ final class ProjectQueryManager extends QueryManager implements IQueryManager {
deleteBoms(project);
deleteVexs(project);
removeProjectFromNotificationRules(project);
removeProjectFromPolicies(project);
delete(project.getProperties());
delete(getAllBoms(project));
delete(project.getChildren());