From f112513ee8d3aebbcff503a7ed7f9a6370ddf932 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Tue, 17 Apr 2012 19:42:08 -0400 Subject: [PATCH] Bug 743766 - Handle IllegalArgumentException in RedirOutputThread. r=ctalbert, a=test-only --- build/mobile/sutagent/android/RedirOutputThread.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/mobile/sutagent/android/RedirOutputThread.java b/build/mobile/sutagent/android/RedirOutputThread.java index f0091c5323c..c0a99201dd4 100755 --- a/build/mobile/sutagent/android/RedirOutputThread.java +++ b/build/mobile/sutagent/android/RedirOutputThread.java @@ -137,6 +137,11 @@ public class RedirOutputThread extends Thread { e.printStackTrace(); } + catch (java.lang.IllegalArgumentException e) + { + // Bug 743766: InputStream.available() unexpectedly throws this sometimes + e.printStackTrace(); + } } pProc.destroy();