From 0a8331f7e62ba5ed3066ddb5c7391bba557a8106 Mon Sep 17 00:00:00 2001 From: joxe Date: Mon, 15 Nov 2010 12:08:20 +0000 Subject: [PATCH] fixed IOException bug in pcap exporter --- .../sics/cooja/plugins/analyzers/IEEE802154Analyzer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/analyzers/IEEE802154Analyzer.java b/tools/cooja/java/se/sics/cooja/plugins/analyzers/IEEE802154Analyzer.java index 5ba78c539..bf1044713 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/analyzers/IEEE802154Analyzer.java +++ b/tools/cooja/java/se/sics/cooja/plugins/analyzers/IEEE802154Analyzer.java @@ -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;