diff --git a/bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/transactions/TransactionExtractor.kt b/bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/transactions/TransactionExtractor.kt index e43d9f1a3..2f9eed28b 100644 --- a/bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/transactions/TransactionExtractor.kt +++ b/bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/transactions/TransactionExtractor.kt @@ -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() } //