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 895960f commit f2f05dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bath/intentions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}

Expand Down

0 comments on commit f2f05dd

Please sign in to comment.