mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01: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 indices = (ArrayList) valueMap.get(new Integer(type));
|
||||
if (indices == null) {
|
||||
throw new IllegalArgumentException("Cannot find type " + type);
|
||||
return values;
|
||||
}
|
||||
|
||||
for (int i = 0; i < indices.size(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user