mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-18 07:11:12 +02:00
Allow collection-style TLVs to have zero elements
This commit is contained in:
parent
5c2486c003
commit
5422a15c79
@ -199,7 +199,7 @@ public class TLVPacket {
|
|||||||
ArrayList values = new ArrayList();
|
ArrayList values = new ArrayList();
|
||||||
ArrayList indices = (ArrayList) valueMap.get(new Integer(type));
|
ArrayList indices = (ArrayList) valueMap.get(new Integer(type));
|
||||||
if (indices == null) {
|
if (indices == null) {
|
||||||
throw new IllegalArgumentException("Cannot find type " + type);
|
return values;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < indices.size(); ++i) {
|
for (int i = 0; i < indices.size(); ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user