Skip to content

Commit 43652b3

Browse files
committed
Small fix
1 parent 4d685fb commit 43652b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/AbstractDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,11 @@ Notes:
472472
- used by both factor graph variable and Bayes tree clique logic.
473473
"""
474474
function isInitialized(var::DFGVariable; key::Symbol=:default)::Bool
475-
solverData(var, key) && return solverData(var, key).initialized
475+
solverData(var, key) != nothing && return solverData(var, key).initialized
476476
return false
477477
end
478478
function isInitialized(fct::DFGFactor; key::Symbol=:default)::Bool
479-
solverData(var, key) && return solverData(fct, key).initialized
479+
solverData(var, key) != nothing && return solverData(fct, key).initialized
480480
return false
481481
end
482482
function isInitialized(dfg::G, label::Symbol; key::Symbol=:default)::Bool where G <: AbstractDFG

0 commit comments

Comments
 (0)