Skip to content

Commit

Permalink
fixup usaged of SyntheticClone to be optional archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Jan 15, 2021
1 parent c2a3196 commit 9514e85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ private static String getSerializedXMLShapeName(ProtocolGenerator.GenerationCont
Optional<SyntheticClone> clone = shape.getTrait(SyntheticClone.class);
if (clone.isPresent()) {
SyntheticClone cl = clone.get();
shapeName = cl.getArchetype().getName();
if (cl.getArchetype().isPresent()) {
shapeName = cl.getArchetype().getName();
}
}

// check if shape is member shape
Expand Down

0 comments on commit 9514e85

Please sign in to comment.