Skip to content

Commit

Permalink
Fix bug in extracting transaction with zero byte lockingScript output
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Nov 18, 2019
1 parent 5541f53 commit f122e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class TransactionExtractor(private val addressConverter: IAddressConverter, priv
}

private fun isNullData(lockingScript: ByteArray): Boolean {
return lockingScript[0] == OP_RETURN.toByte()
return lockingScript.isNotEmpty() && lockingScript[0] == OP_RETURN.toByte()
}

//
Expand Down

0 comments on commit f122e15

Please sign in to comment.