fixed IOException bug in pcap exporter
This commit is contained in:
parent
c9a109dbc8
commit
0a8331f7e6
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue