mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 858960 - Check for end of stream when identifying traces file; r=blassey
This commit is contained in:
parent
8ca652b373
commit
ff98be066b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user