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 ca9c22a0c7
commit 225ac912c5

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;