Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-01-29 16:27:21 +0000
committerCarolyn MacLeod2013-01-29 17:07:26 +0000
commit26c550e048a5ae375ee3829caa2032b5562cbeea (patch)
tree61345e966e0171b1e4d62da5dd6f73acaa9c2057
parente93ef4260ca771d90083b07d9507d0e9eafd7249 (diff)
downloadeclipse.platform.swt-26c550e048a5ae375ee3829caa2032b5562cbeea.tar.gz
eclipse.platform.swt-26c550e048a5ae375ee3829caa2032b5562cbeea.tar.xz
eclipse.platform.swt-26c550e048a5ae375ee3829caa2032b5562cbeea.zip
Bug 398711 - NPE in AbstractTreeViewer.getSelection trying to selectv3836bR3_8_2
non-expanded nodes
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index 71ad922994..94c306bf3b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -5033,6 +5033,9 @@ void expandToItem(TreeItem item) {
if (parentItem != null && !parentItem.getExpanded()) {
expandToItem(parentItem);
parentItem.setExpanded(true);
+ Event event = new Event ();
+ event.item = parentItem;
+ sendEvent (SWT.Expand, event);
}
}

Back to the top