diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-17 15:51:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-17 15:51:49 +0100 |
commit | 5bb51521233d75cfc90492746eb4f08f47616acc (patch) | |
tree | 92fce92f6700e626b2a17738b087e4c7280ab078 /jurt/com | |
parent | 28137a5177de7823351b7d61149a6c194c46bb54 (diff) |
Make jurt JunitTests work
Diffstat (limited to 'jurt/com')
-rw-r--r-- | jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java index b0c093ffa2bb..105b761af486 100644 --- a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java +++ b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java @@ -135,8 +135,11 @@ public class BridgeFactory implements XBridgeFactory/*, XEventListener*/ { xBridge = UnoRuntime.queryInterface(XBridge.class, iBridge); } - catch(Exception exception) { - throw new com.sun.star.lang.IllegalArgumentException(exception.getMessage()); + catch (Exception e) { + com.sun.star.lang.IllegalArgumentException e2 = + new com.sun.star.lang.IllegalArgumentException(e.getMessage()); + e2.initCause(e); + throw e2; } if(DEBUG) System.err.println("##### " + getClass().getName() + ".createBridge:" + sName + " " + sProtocol + " " + aConnection + " " + anInstanceProvider + " " + xBridge); |