Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ For example `ViewUsage` elements are no longer rendered in _parts_ compartments.
- https://github.com/eclipse-syson/syson/issues/1998[#1998] [metamodel] Missing implicit TypeFeaturing.
- https://github.com/eclipse-syson/syson/issues/2023[#2023] [diagrans] On diagrams, `ConnectionDefinition` graphical nodes are now correctly labelled as `«connection def»`.
- https://github.com/eclipse-syson/syson/issues/2034[#2034] [import] Fix textual import to be able to annotate `Relationships`.
- https://github.com/eclipse-syson/syson/issues/2032[#2032] [export] Fix NPE when exporting `LiteralString`.

=== Improvements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,9 @@ public void literalString() {
literalStr.setValue("value");

this.assertTextualFormEquals("\"value\"", literalStr);

literalStr.setValue(null);
this.assertTextualFormEquals("\"\"", literalStr);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ private String toPreciseReal(double value) {
public String caseLiteralString(LiteralString literal) {
Appender builder = this.newAppender();
builder.append("\"");
builder.append(literal.getValue().replace("\"", "\\\""));
if (literal.getValue() != null) {
builder.append(literal.getValue().replace("\"", "\\\""));
}
builder.append("\"");
return builder.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ package Test {
}
```

** Fix a textual export problem while exporting `LiteralString` with no value.

* In _Explorer_ view:

** Fix an issue where creating a new model using the _Create a new model_ action in the _Explorer_ view was not adding the ".sysml" extension to the model name.
Expand Down
Loading