Skip to content

Commit

Permalink
nullPointerException fixed for applyChangeSuggestion (#579)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b91367)
  • Loading branch information
ahakanzn committed Aug 5, 2024
1 parent 494f344 commit 58df2e2
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 58df2e2

Please sign in to comment.