add handle error: MINPacket

This commit is contained in:
free will committed 2021-03-16 10:24:38 +08:00
1 parent b8e6896585
commit b93e21ffaf
1 file changed
+7 -1
+7 -1
View File
@@ -115,7 +115,13 @@ public class MINPacket implements IEncodingAble {
int elementSize=block.getSubElements().length();
for (int i=0;i<elementSize;i++) {
Block cacheBlock=block.getSubElements().getBlock(i);
switch (cacheBlock.getType().getVlIntValue2Int()){
int judgeType= 0;
try {
judgeType = cacheBlock.getType().getVlIntValue2Int();
} catch (VlIntException e) {
throw new Error("MINPacket.wireDecode: "+e.getMessage());
}
switch (judgeType){
case TLV.TlvIdentifierField: // 目的标识区
// 解析标识区,保证其中至少存在一个标识
if(!cacheBlock.parseSubElements()){