txcoinValidator create
@@ -19,6 +19,7 @@ public class TxCoinValidator implements NulsDataValidator<Transaction> {
@Override
public ValidateResult validate(Transaction tx) throws NulsException {
try {
+ if(tx.getCoinData() != null){
List<Coin> toList = tx.getCoinData().getTo();
if(toList != null && toList.size()>0){
for (Coin coin:toList) {
@@ -27,6 +28,8 @@ public class TxCoinValidator implements NulsDataValidator<Transaction> {
}
}
}
+ }
+
} catch (Exception e) {
Log.error(e);
}
