Skip to content
Snippets Groups Projects
Commit a7edb1d4 authored by Boris Grozev's avatar Boris Grozev
Browse files

Adds a null check, now necessary because the RawPacket arrays in the transformers may contain null.

parent 03ac531f
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ protected RawPacket[] createRawPacket(DatagramPacket datagramPacket)
/* Don't try to transform invalid packets (for ex. empty) */
for(int i=0; i<pkts.length; i++)
if(pkts[i].isInvalid())
if(pkts[i] != null && pkts[i].isInvalid())
pkts[i] = null; //null elements are just ignored
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment