Skip to content

Commit e01c962

Browse files
committed
Fix issue when topology is not defined properly
1 parent 86b56dc commit e01c962

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/utils_GUI/topo_axis_utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ function connect!(gui::GUI, connection::Connection, two_way::Bool)
229229
any(style == inv_linestyle for style linestyles) ? [inv_linestyle] : [:solid]
230230
else
231231
colors = get_colors(connection)
232+
if isempty(colors)
233+
@warn "No resources transmitted for connection $(get_element(connection).id). Skipping."
234+
return
235+
end
232236
no_colors = length(colors)
233237
linestyle = linestyles
234238
end

0 commit comments

Comments
 (0)