Index: webrtc/api/java/android/org/webrtc/ThreadUtils.java |
diff --git a/webrtc/api/java/android/org/webrtc/ThreadUtils.java b/webrtc/api/java/android/org/webrtc/ThreadUtils.java |
index 68b52d3e15589d2f7d73950b2a9b7703ce5d8875..8eeebc84dc2c0dd57eecc2c02c2ff3c8fc1252cd 100644 |
--- a/webrtc/api/java/android/org/webrtc/ThreadUtils.java |
+++ b/webrtc/api/java/android/org/webrtc/ThreadUtils.java |
@@ -150,7 +150,10 @@ public class ThreadUtils { |
try { |
result.value = callable.call(); |
} catch (Exception e) { |
- throw new RuntimeException("Callable threw exception: " + e); |
+ final RuntimeException runtimeException = |
+ new RuntimeException("Callable threw exception: " + e); |
+ runtimeException.setStackTrace(e.getStackTrace()); |
+ throw runtimeException; |
} |
barrier.countDown(); |
} |