Skip to content

Commit 39fd9de

Browse files
fix: handle nothing sys in namespace_expr
1 parent 1e7feac commit 39fd9de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ end
11691169

11701170
function namespace_expr(
11711171
O, sys, n = nameof(sys); ivs = independent_variables(sys))
1172+
sys === nothing && return O
11721173
O = unwrap(O)
11731174
# Exceptions for arrays of symbolic and Ref of a symbolic, the latter
11741175
# of which shows up in broadcasts

0 commit comments

Comments
 (0)