diff options
Diffstat (limited to 'javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java index 48ca6c68ab72..c867cad5d439 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java @@ -762,7 +762,9 @@ public class InterfaceContainer implements Cloneable } catch(java.lang.IndexOutOfBoundsException e) { - throw new java.util.NoSuchElementException(); + java.util.NoSuchElementException ex2 = new java.util.NoSuchElementException(); + ex2.initCause(e); + throw ex2; } } @@ -828,7 +830,9 @@ public class InterfaceContainer implements Cloneable return previous; } catch(IndexOutOfBoundsException e) { - throw new NoSuchElementException(); + java.util.NoSuchElementException ex2 = new java.util.NoSuchElementException(); + ex2.initCause(e); + throw ex2; } } |