Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez committed Jun 10, 2024
1 parent 7fdd7c8 commit e24ed64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routing/payment_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,10 @@ func (p *shardHandler) handleSendError(attempt *channeldb.HTLCAttemptInfo,
return failPayment(&internalErrorReason, sendErr)
}

log.Infof("Node=%v reported failure when sending htlc, code: %v",
failureSourceIdx, failureMessage.Code())
if failureMessage != nil {
log.Infof("Node=%v reported failure when sending htlc, code: %v",
failureSourceIdx, failureMessage.Code())
}

return reportFail(&failureSourceIdx, failureMessage)
}
Expand Down

0 comments on commit e24ed64

Please sign in to comment.