Bug 858960 - Check for end of stream when identifying traces file; r=blassey

This commit is contained in:
Jim Chen 2013-04-08 14:54:25 -04:00
parent 8ca652b373
commit ff98be066b

View File

@ -223,6 +223,12 @@ public final class ANRReporter extends BroadcastReceiver
if (DEBUG) {
Log.d(LOGTAG, "identifying line: " + String.valueOf(line));
}
if (line == null) {
if (DEBUG) {
Log.d(LOGTAG, "reached end of traces file");
}
return false;
}
if (pkgPattern.matcher(line).find()) {
// traces.txt file contains our package
return true;