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,8 +549,9 @@ public class RadioLogger extends VisPlugin {
private boolean analyzePacket(PacketAnalyzer.Packet packet, StringBuffer brief, StringBuffer verbose) {
if (analyzers == null) return false;
boolean analyze = true;
while (analyze) {
try {
boolean analyze = true;
while (analyze) {
analyze = false;
for (int i = 0; i < analyzers.size(); i++) {
PacketAnalyzer analyzer = analyzers.get(i);
@ -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;
}