summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun/star
diff options
context:
space:
mode:
Diffstat (limited to 'javaunohelper/com/sun/star')
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
index a61edc06acc8..e0fa1456e817 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/InterfaceContainer.java
@@ -569,13 +569,10 @@ public class InterfaceContainer implements Cloneable
while (itColl.hasNext())
{
Object o= itColl.next();
- if (o != null)
+ if (o != null && UnoRuntime.areSame(o, curElem))
{
- if (UnoRuntime.areSame(o, curElem))
- {
- bExists= true;
- break;
- }
+ bExists= true;
+ break;
}
}
}