Skip to content

Commit

Permalink
Merge pull request #2467 from valentijnscholten/bom-upload-removed-pr…
Browse files Browse the repository at this point in the history
…oject

Bom Upload: don't choke on removed project
  • Loading branch information
nscuro authored Feb 7, 2023
2 parents 7b28d33 + aa5be9c commit ce2267f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public void inform(final Event e) {
final QueryManager qm = new QueryManager();
try {
final Project project = qm.getObjectByUuid(Project.class, event.getProjectUuid());

if (project == null) {
LOGGER.warn("Ignoring BOM Upload event for no longer existing project " + event.getProjectUuid());
return;
}

final List<Component> components;
final List<Component> newComponents = new ArrayList<>();
final List<Component> flattenedComponents = new ArrayList<>();
Expand Down

0 comments on commit ce2267f

Please sign in to comment.