From f2f05dd3c3b10c09d9604e2910deb9473f66efec Mon Sep 17 00:00:00 2001 From: Victoria Erokhina Date: Thu, 19 Sep 2024 13:03:09 +0000 Subject: [PATCH] Check if tx is nil --- pkg/bath/intentions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bath/intentions.go b/pkg/bath/intentions.go index b8d57c0c..9cbb2e20 100644 --- a/pkg/bath/intentions.go +++ b/pkg/bath/intentions.go @@ -137,7 +137,7 @@ func compareMessageFields(msgOut OutMessage, msgIn *core.Message) bool { } func getOutMessages(transaction *core.Transaction) []OutMessage { - if transaction.InMsg.DecodedBody == nil { + if transaction == nil || transaction.InMsg == nil || transaction.InMsg.DecodedBody == nil { return []OutMessage{} }