Skip to content

Commit

Permalink
fix: check prevDescription not null to avoid NPE (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: Golubev Nikolay <[email protected]>
  • Loading branch information
nivolg and Golubev Nikolay authored Dec 13, 2024
1 parent 34ca848 commit bd31565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/service/GitLabService.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private String buildDescription(String gitlabEventUUID, Long project, String sou
descriptionBuilder.append("\n");
descriptionBuilder.append("\n");
String prevDescription = cascadedMrs.firstEntry().getValue().getDescription();
if (prevDescription.isBlank()) {
if (prevDescription == null || prevDescription.isBlank()) {
descriptionBuilder.append("_No description_");
} else {
descriptionBuilder.append(prevDescription);
Expand Down

0 comments on commit bd31565

Please sign in to comment.