Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2259)

Unified Diff: webrtc/api/java/android/org/webrtc/ThreadUtils.java

Issue 1780183005: Android: Add more info for createPbufferSurface() exceptions (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/java/android/org/webrtc/EglBase14.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « webrtc/api/java/android/org/webrtc/EglBase14.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698