Skip to content

Commit

Permalink
elk.core.persistence: fixed invalid options being written to elkg ecl…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulf Rueegg authored and Christoph Daniel Schulze committed Feb 4, 2017
1 parent d3ceef2 commit e6a591a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* <h3>Deserialization</h3>
*
* <p>Deserializing properties requries the
* <p>Deserializing properties requires the
* {@link org.eclipse.elk.core.data.LayoutMetaDataService LayoutMetaDataService} to obtain appropriate
* {@link org.eclipse.elk.core.data.LayoutOptionData LayoutOptionData} objects to be able to parse option
* values. This cannot be done in the graph plug-in with the graph factory's conversion methods, since the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void saveElement(final EObject o, final EStructuralFeature f) {

// Check if the value we want to serialize here will be parsable later so we can deserialize it
// again properly; if this is not the case, there is no point serializing it in the first place
if (optionData != null && !optionData.canParseValue()) {
if (optionData == null || (optionData != null && !optionData.canParseValue())) {
return;
}
}
Expand Down

0 comments on commit e6a591a

Please sign in to comment.