add error handle; VlInt

This commit is contained in:
free will committed 2021-03-17 10:34:32 +08:00
1 parent 17e35f10d0
commit de55943194
6 files changed
+131 -48

No files matched your search

+7 -1
View File
@@ -155,7 +155,13 @@ public class SignatureInfo implements TlvComponentBase, IEncodingAble {
int elementSize=block.getSubElements().length();
for (int i=0;i<elementSize;i++) {
Block cacheBlock=block.getSubElements().getBlock(i);
switch (cacheBlock.getType().getVlIntValue2Int()){
int type= 0;
try {
type = cacheBlock.getType().getVlIntValue2Int();
} catch (VlIntException e) {
e.printStackTrace();
}
switch (type){
case TLV.TlvSignatureType:
if(!this.signatureType.wireDecode(cacheBlock)){
return false;