fixed error handle

This commit is contained in:
free will committed 2021-03-24 11:22:23 +08:00
1 parent 7bf0906291
commit adf834a4e9
10 files changed
+31 -67

No files matched your search

+3 -11
View File
@@ -117,11 +117,7 @@ public class SignatureInfo implements TlvComponentBase, IEncodingAble {
totalLength+=tmplen;
}
int tmplen= 0;
try {
tmplen = this.signatureType.wireEncode(encoder);
} catch (EncoderException e) {
throw new ComponentException("SignatureInfo.wireEncode: "+e.getMessage());
}
tmplen = this.signatureType.wireEncode(encoder);
if(tmplen<=0){
return -1;
}
@@ -185,12 +181,8 @@ public class SignatureInfo implements TlvComponentBase, IEncodingAble {
}
switch (type){
case TLV.TlvSignatureType:
try {
if(!this.signatureType.wireDecode(cacheBlock)){
return false;
}
} catch (VlIntException e) {
throw new ComponentException("SignatureInfo.wireDecode: "+e.getMessage());
if(!this.signatureType.wireDecode(cacheBlock)){
return false;
}
findSignatureType=true;
case TLV.TlvKeyLocator: