Skip to content

Commit bfcb5aa

Browse files
authored
add null check (#209)
1 parent ea12be0 commit bfcb5aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Features/Blockcore.Features.ColdStaking/ColdStakingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public override bool ProcessTransaction(Transaction transaction, int? blockHeigh
632632
if (script.IsUnspendable)
633633
{
634634
var data = TxNullDataTemplate.Instance.ExtractScriptPubKeyParameters(script);
635-
if (data.Length == 1)
635+
if (data != null && data.Length == 1)
636636
{
637637
if (data[0].Length == 40)
638638
{

0 commit comments

Comments
 (0)