if (Integer.signum(compare) != Integer.signum(comparePrev)) {
// Throw an exception if the order of the two signatures is not consistent,
// E.g., 111, 222, 333 in one occassion and 222, 333, 111 in the other.
- throw new Error("For some reason, the order of signatures are not always consistent!" +
- "Returning the original data structure of signatures...");
+// throw new Error("For some reason, the order of signatures are not always consistent!" +
+// "Returning the original data structure of signatures...");
}
}
comparePrev = compare;
// Print out packet lengths in a sequence
int packetCounter = 0;
for(PcapPacket pcapPacket : listPcapPacket) {
- System.out.print(pcapPacket.length());
+ if(pcapPacket != null) {
+ System.out.print(pcapPacket.length());
+ }
if(packetCounter < listPcapPacket.size() - 1) {
System.out.print(" "); // Provide space if not last packet
} else {