capturing exceptions from radio logger - some packet analyzers seems to be buggy

This commit is contained in:
Fredrik Osterlind 2012-03-06 09:47:34 +01:00
parent 485ef0cd79
commit 1d13e93db7

View File

@ -549,6 +549,7 @@ public class RadioLogger extends VisPlugin {
private boolean analyzePacket(PacketAnalyzer.Packet packet, StringBuffer brief, StringBuffer verbose) {
if (analyzers == null) return false;
try {
boolean analyze = true;
while (analyze) {
analyze = false;
@ -570,6 +571,10 @@ public class RadioLogger extends VisPlugin {
}
}
}
} catch (Exception e) {
logger.debug("Error when analyzing packet: " + e.getMessage(), e);
return false;
}
return brief.length() > 0;
}