Skip to content

Commit

Permalink
[536] Some test data have no default layer
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Porhel <[email protected]>
  • Loading branch information
mPorhel committed Dec 19, 2024
1 parent 1777698 commit e2a39d3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ private IStatus validateUniqueInteractionContainerMapping(IValidationContext ctx
Collection<Layer> layersToInspect = new LinkedHashSet<>();

if (eObj instanceof SequenceDiagramDescription sequenceDiagramDescription) {
layersToInspect.add(sequenceDiagramDescription.getDefaultLayer());
Layer defaultLayer = sequenceDiagramDescription.getDefaultLayer();
if (defaultLayer != null) {
layersToInspect.add(defaultLayer);
}
layersToInspect.addAll(sequenceDiagramDescription.getAdditionalLayers());
} else if (eObj instanceof Layer layer) {
layersToInspect.add(layer);
Expand Down

0 comments on commit e2a39d3

Please sign in to comment.