mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Fix issue
This commit is contained in:
parent
d387828147
commit
5a784dcb0c
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user