Skip to content

Commit

Permalink
Check if tx is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
erokhinav committed Sep 19, 2024
1 parent f2f05dd commit 20155a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bath/intentions.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ func compareMessageFields(msgOut OutMessage, msgIn *core.Message) bool {
}

func getOutMessages(transaction *core.Transaction) []OutMessage {
if transaction == nil || transaction.InMsg == nil || transaction.InMsg.DecodedBody == nil {
if transaction == nil ||
transaction.InMsg == nil ||
transaction.InMsg.DecodedBody == nil ||
transaction.InMsg.DecodedBody.Value == nil {
return []OutMessage{}
}

Expand Down

0 comments on commit 20155a2

Please sign in to comment.