Skip to content

Commit

Permalink
nullPointerException fixed for applyChangeSuggestion (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanzn committed Jul 31, 2024
1 parent fe0339f commit 2b91367
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 2b91367

Please sign in to comment.