Skip to content

Commit

Permalink
Merge pull request #604 from gbif/579-index-herbarium
Browse files Browse the repository at this point in the history
nullPointerException fixed for applyChangeSuggestion (https://github.…
  • Loading branch information
ahakanzn authored Jul 31, 2024
2 parents ef4352b + 2b91367 commit 63d3ff7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public int createChangeSuggestion(CollectionChangeSuggestion changeSuggestion) {
public UUID applyChangeSuggestion(int suggestionKey){
ChangeSuggestionDto dto = changeSuggestionMapper.get(suggestionKey);
if (dto.getType() == Type.CREATE) {
if (dto.getCreateInstitution()) {
if (Boolean.TRUE.equals(dto.getCreateInstitution())) {
UUID createdInstitution = createInstitutionForCollectionSuggestion(dto);
Collection suggestedCollection = readJson(dto.getSuggestedEntity(), Collection.class);
suggestedCollection.setInstitutionKey(createdInstitution);
Expand Down

0 comments on commit 63d3ff7

Please sign in to comment.