1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

Fix issue

This commit is contained in:
Arnaud Roques 2022-03-04 20:25:35 +01:00
parent d387828147
commit 5a784dcb0c

View File

@ -100,7 +100,9 @@ public class TextBlockLineBefore extends AbstractTextBlock implements TextBlock,
@Override
public Ports getPorts(StringBounder stringBounder) {
return ((WithPorts) textBlock).getPorts(stringBounder);
if (textBlock instanceof WithPorts)
return ((WithPorts) textBlock).getPorts(stringBounder);
return new Ports();
}
}