diff --git a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java index 7ddb088747e6..b912b50b820d 100644 --- a/platform/util/src/com/intellij/execution/rmi/RemoteObject.java +++ b/platform/util/src/com/intellij/execution/rmi/RemoteObject.java @@ -104,6 +104,7 @@ public class RemoteObject implements Remote, Unreferenced { if (foreignException) { final RuntimeException wrapper = new RuntimeException(ex.toString()); wrapper.setStackTrace(ex.getStackTrace()); + wrapper.initCause(wrapException(ex.getCause())); ex = wrapper; } return ex;