summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jurt/com/sun/star/comp/servicemanager/ServiceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
index 899999d5f339..c1366a90287e 100644
--- a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
+++ b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
@@ -800,9 +800,9 @@ public class ServiceManager implements XMultiServiceFactory,
return enumeration.nextElement();
} catch (java.util.NoSuchElementException e) {
com.sun.star.container.NoSuchElementException ex =
- new com.sun.star.container.NoSuchElementException();
- ex.fillInStackTrace();
-
+ new com.sun.star.container.NoSuchElementException(
+ e.toString());
+ ex.initCause(e);
throw ex;
}
}