diff --git a/src/FMI2/convert.jl b/src/FMI2/convert.jl index 5a8a30a..38cf25c 100644 --- a/src/FMI2/convert.jl +++ b/src/FMI2/convert.jl @@ -134,7 +134,7 @@ Returns the ValueReference or an array of ValueReferences coresponding to the va See also [`fmi2StringToValueReference`](@ref) """ function fmi2StringToValueReference(md::fmi2ModelDescription, name::String) - reference = nothing + reference = typemax(valtype(md.stringValueReferences)) if haskey(md.stringValueReferences, name) reference = md.stringValueReferences[name] else