Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2007-10-25 14:02:38 +0000
committerCarolyn MacLeod2007-10-25 14:02:38 +0000
commitd6b79b6473afebbe9981c63f24cfb35b1cabdb63 (patch)
tree3c15dcbe6dfb0278f931806adefa6516b592b22b /bundles/org.eclipse.swt/Eclipse SWT Accessibility
parentb2fc7527892feea5b57b5f419342a44552592408 (diff)
downloadeclipse.platform.swt-d6b79b6473afebbe9981c63f24cfb35b1cabdb63.tar.gz
eclipse.platform.swt-d6b79b6473afebbe9981c63f24cfb35b1cabdb63.tar.xz
eclipse.platform.swt-d6b79b6473afebbe9981c63f24cfb35b1cabdb63.zip
fix IOOB exception reported in newsgroup
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Accessibility')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
index 19d2a42a96..73c5966326 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
@@ -1073,7 +1073,10 @@ public class Accessible {
if (checked) event.detail |= ACC.STATE_CHECKED;
} else if (control instanceof Table && (control.getStyle() & SWT.CHECK) != 0) {
Table table = (Table) control;
- TableItem item = table.getItem(event.childID);
+ TableItem item = null;
+ try {
+ item = table.getItem(event.childID);
+ } catch (IllegalArgumentException ex) {}
if (item != null) {
if (item.getChecked()) event.detail |= ACC.STATE_CHECKED;
}

Back to the top