X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=tx-signer%2Fsrc%2Fmain%2Fjava%2Fio%2Fbytom%2Foffline%2Fapi%2FBaseInput.java;h=6b909a7594898befc04da7c5748caf048e65fd7b;hb=089a0b16330df95c100c70a031bafe415a2fcfe8;hp=4963549ce85b340edcf3b1145a71f65679aee9f3;hpb=562476f76aa74835df5da2938c53ad2f9be32b52;p=bytom%2Fbytom-java-sdk.git diff --git a/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java b/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java index 4963549..6b909a7 100644 --- a/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java +++ b/tx-signer/src/main/java/io/bytom/offline/api/BaseInput.java @@ -70,6 +70,9 @@ public abstract class BaseInput { if (program == null) { throw new IllegalArgumentException("the program id of input must be specified."); } + if (keyIndex == null) { + throw new IllegalArgumentException("the key index of input must be specified."); + } if (witnessComponent.getRootPrivateKey() == null) { throw new IllegalArgumentException("the root private key of input must be specified."); }