Skip to content

Commit 5c1b752

Browse files
committed
Null check
Format
1 parent 3aa00d3 commit 5c1b752

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/main/java/org/openapitools/openapidiff/core/output/HtmlRender.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,13 @@ private LiTag li_changedParam(ChangedParameter changeParam) {
571571
}
572572

573573
private UlTag ul_operation_id(ChangedOperationId changedOperationId) {
574-
return ul().withClass("change").with(li().withText("Changed " + changedOperationId.getLeft() + " to " + changedOperationId.getRight()));
574+
return ul().withClass("change").with(
575+
li().withText(
576+
"Changed " +
577+
Optional.ofNullable(changedOperationId.getLeft()).orElse("") +
578+
" to " +
579+
Optional.ofNullable(changedOperationId.getRight()).orElse("")
580+
)
581+
);
575582
}
576583
}

0 commit comments

Comments
 (0)