Skip to content

Commit

Permalink
Merge pull request #139 from dbmdz/fix-manifestation-nullpointer
Browse files Browse the repository at this point in the history
[DFGMETA-67]: Fixed nullpointer
  • Loading branch information
clorenz authored Jul 2, 2024
2 parents d9488e8 + 8957399 commit 7999f08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

### Fixed

- Fixed Nullpointer in `Manifestation.dumpShortenedRelations`

## [9.2.1](https://github.com/dbmdz/metadata-service/releases/tag/9.2.1) - 2024-06-11

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ public int hashCode() {
*/
private String dumpShortenedRelations(List<EntityRelation> relations) {
return "["
+ relations.stream().map(EntityRelation::toShortenedString).collect(Collectors.joining(","))
+ (relations == null
? "null"
: relations.stream()
.map(EntityRelation::toShortenedString)
.collect(Collectors.joining(",")))
+ "]";
}

Expand Down

0 comments on commit 7999f08

Please sign in to comment.