Skip to content

Commit

Permalink
fix(msg): Check for p.param being nothing in get(p::ParamRsp)
Browse files Browse the repository at this point in the history
  • Loading branch information
ettersi committed Jun 15, 2023
1 parent b24b95d commit 88276c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Extract parameter `param` from a parameter response message.
function Base.get(p::ParameterRsp, key)
skey = string(key)
dskey = "." * skey
(p.param == skey || endswith(p.param, dskey)) && return p.value
(!isnothing(p.param) && (p.param == skey || endswith(p.param, dskey))) && return p.value
vals = p.values
if vals !== nothing
for (k, v) vals
Expand Down

0 comments on commit 88276c2

Please sign in to comment.