Element logcat;
commandLine.addAll(logcatArgumentsList);
try {
final Process process = new ProcessBuilder().command(commandLine).redirectErrorStream(true).start();
if (ACRA.DEV_LOGGING) ACRA.log.d(LOG_TAG, "Retrieving logcat output...");
<BUG>logcat = new SimpleElement(streamToString(process.getInputStream(), new Predicate<String>() {
</BUG>
@Override
public boolean apply(String s) {
return myPidStr == null || s.contains(myPidStr);

Element logcat;
commandLine.addAll(logcatArgumentsList);
try {
final Process process = new ProcessBuilder().command(commandLine).redirectErrorStream(true).start();
if (ACRA.DEV_LOGGING) ACRA.log.d(LOG_TAG, "Retrieving logcat output...");
logcat = new StringElement(streamToString(process.getInputStream(), new Predicate<String>() {
@Override
public boolean apply(String s) {
return myPidStr == null || s.contains(myPidStr);
