diff options
author | Felipe Heidrich <Felipe_Heidrich@ca.ibm.com> | 2011-09-28 11:52:30 -0400 |
---|---|---|
committer | Felipe Heidrich <Felipe_Heidrich@ca.ibm.com> | 2011-09-28 11:53:50 -0400 |
commit | 97cf8bf9457f6c47f5de54050be5a8181e81efcf (patch) | |
tree | 2df5b65a5e97f50a471e6ff36478bb1238f2597d /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | |
parent | 7510c6cd512486b43e02d20965f1da527e9bf12f (diff) | |
download | eclipse.platform.swt-97cf8bf9457f6c47f5de54050be5a8181e81efcf.tar.gz eclipse.platform.swt-97cf8bf9457f6c47f5de54050be5a8181e81efcf.tar.xz eclipse.platform.swt-97cf8bf9457f6c47f5de54050be5a8181e81efcf.zip |
Bug 357026 - Virtual Table throws exception when AVG is installed
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java index 7c0e98e73f..f76718d46a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java @@ -6740,7 +6740,7 @@ LRESULT wmNotifyChild (NMHDR hdr, int /*long*/ wParam, int /*long*/ lParam) { string = item.text; } else { String [] strings = item.strings; - if (strings != null) string = strings [plvfi.iSubItem]; + if (strings != null && plvfi.iSubItem < strings.length) string = strings [plvfi.iSubItem]; } if (string != null) { /* @@ -6785,7 +6785,7 @@ LRESULT wmNotifyChild (NMHDR hdr, int /*long*/ wParam, int /*long*/ lParam) { image = item.image; } else { Image [] images = item.images; - if (images != null) image = images [plvfi.iSubItem]; + if (images != null && plvfi.iSubItem < images.length) image = images [plvfi.iSubItem]; } if (image != null) { plvfi.iImage = imageIndex (image, plvfi.iSubItem); |