Skip to content

Commit

Permalink
Fix ClassCastException when updating an existing `ProjectMetadata#a…
Browse files Browse the repository at this point in the history
…uthors` field (#592)
  • Loading branch information
nscuro authored Feb 22, 2024
1 parent 0dcce96 commit b0cd96b
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ private void processBom(final Context ctx, final File bomFile) throws BomConsump
qm.getPersistenceManager().makePersistent(projectMetadata);
} else {
project.getMetadata().setSupplier(projectMetadata.getSupplier());
project.getMetadata().setAuthors(projectMetadata.getAuthors());
project.getMetadata().setAuthors(projectMetadata.getAuthors() != null
? new ArrayList<>(projectMetadata.getAuthors())
: null);
}
}
final Map<ComponentIdentity, Component> persistentComponents =
Expand Down
Loading

0 comments on commit b0cd96b

Please sign in to comment.