Skip to content

Commit 2746e50

Browse files
properly check null symbolcache
1 parent d93a327 commit 2746e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tabletraits.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ function Tables.rows(A::AbstractDiffEqArray)
77
N = length(A.u[1])
88
names = [
99
:timestamp,
10-
(A.sc !== nothing ? (states(A.sc)[i] for i in 1:N) :
10+
(!(A.sc isa SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}) ? (states(A.sc)[i] for i in 1:N) :
1111
(Symbol("value", i) for i in 1:N))...,
1212
]
1313
types = Type[eltype(A.t), (eltype(A.u[1]) for _ in 1:N)...]
1414
else
15-
names = [:timestamp, A.sc !== nothing ? states(A.sc)[1] : :value]
15+
names = [:timestamp, !(A.sc isa SymbolicIndexingInterface.SymbolCache{Nothing, Nothing, Nothing}) ? states(A.sc)[1] : :value]
1616
types = Type[eltype(A.t), VT]
1717
end
1818
return AbstractDiffEqArrayRows(names, types, A.t, A.u)

0 commit comments

Comments
 (0)