Skip to content

Commit

Permalink
[Hotfix] ObjectMigrationFromAccountToPerson.java - gestion du cas où …
Browse files Browse the repository at this point in the history
…une provenance n'as pas de champs "agents"
  • Loading branch information
roux committed Jul 28, 2023
1 parent 6913ada commit 3a616ba
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ private void modifyObjectFromAccountToPerson(Node subjectRdfType, Node predicate

private void migrateProvenanceOperators(ProvenanceModel provenance, Map<URI, AccountModel> accounts, String operatorPredicateURI, ProvenanceDAO provenanceDAO) throws NoSQLInvalidURIException {
Collection<AgentModel> operators = new ArrayList<>();
if ( Objects.isNull(provenance.getAgents()) ) {
return;
}

provenance.getAgents().forEach( agentModel -> {
String agentType = URIDeserializer.getExpandedURI(agentModel.getRdfType());
if (agentType.equals(operatorPredicateURI)){
Expand Down

0 comments on commit 3a616ba

Please sign in to comment.