Skip to content

Commit

Permalink
kgraph: skip parsing unparsable layout options
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Mar 14, 2024
1 parent 0ee929a commit e6404d0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,13 @@ public static void loadDataElement(final LayoutMetaDataService dataService,

// if we have a valid layout option, parse its value.
if (layoutOptionData != null) {
Object layoutOptionValue = layoutOptionData.parseValue(value);
if (layoutOptionValue != null) {
propertyHolder.setProperty(layoutOptionData, layoutOptionValue);
try {
Object layoutOptionValue = layoutOptionData.parseValue(value);
if (layoutOptionValue != null) {
propertyHolder.setProperty(layoutOptionData, layoutOptionValue);
}
} catch (IllegalStateException e) {
// Some options cannot be parsed, skip these.
}
} else {

Expand Down

0 comments on commit e6404d0

Please sign in to comment.