Defend against nil rv in send().

This commit is contained in:
Alan Noble 2018-06-28 15:31:34 +09:30
parent 9dd53b58a0
commit 0daaf89154
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ func send(ns *netsender.Sender) error {
// populate input values, if any
inputs := netsender.MakePins(ns.Param("ip"), "X")
for i, pin := range inputs {
if pin.Name == "X23" {
if rv != nil && pin.Name == "X23" {
inputs[i].Value = rv.Bitrate()
}
}