summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-20 14:22:54 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-20 14:22:54 -0400
commit04f381a8045d2aa29c6154296d6068d657015fbf (patch)
tree657fa18c8d8e091c7e8925647923e5319902db30
parenta215b82e21c4662f93a9c3b2b1fa9b09bb89fa3f (diff)
downloadeclipse.platform.swt-04f381a8045d2aa29c6154296d6068d657015fbf.tar.gz
eclipse.platform.swt-04f381a8045d2aa29c6154296d6068d657015fbf.tar.xz
eclipse.platform.swt-04f381a8045d2aa29c6154296d6068d657015fbf.zip
Bug 386220 - [Mac Cocoa] org.eclipse.swt.accessibility.Accessible.getChildrenAttribute may throw java.lang.ArrayIndexOutOfBoundsException
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java
index b44bf9d1c2..de614bcf19 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java
@@ -2054,6 +2054,7 @@ public class Accessible {
listener.getChildren(event);
}
Object[] children = event.children;
+ childCount = children != null ? children.length : 0;
NSMutableArray childArray = NSMutableArray.arrayWithCapacity(childCount);
for (int i = 0; i < childCount; i++) {
Object child = children[i];