routerrpc: add nil check for MilliSat

This commit is contained in:
Slyghtning committed 2025-03-24 16:54:05 +01:00
1 parent 5235f3b24f
commit 35c9eecf4e
1 file changed
+1 -1
+1 -1
View File
@@ -519,7 +519,7 @@ func (s *Server) probePaymentRequest(ctx context.Context, paymentRequest string,
return nil, err
}
if *payReq.MilliSat <= 0 {
if payReq.MilliSat == nil || *payReq.MilliSat <= 0 {
return nil, errors.New("payment request amount must be " +
"greater than 0")
}