fixed IOException bug in pcap exporter

This commit is contained in:
joxe 2010-11-15 12:08:20 +00:00
parent c9a109dbc8
commit 0a8331f7e6

View File

@ -50,7 +50,12 @@ public class IEEE802154Analyzer extends PacketAnalyzer {
public int analyzePacket(Packet packet, StringBuffer brief, StringBuffer verbose) {
if (pcapExporter != null) {
pcapExporter.exportPacketData(packet.getPayload());
try {
pcapExporter.exportPacketData(packet.getPayload());
} catch (IOException e) {
System.err.println("Could not export PCap data");
e.printStackTrace();
}
}
int pos = packet.pos;