summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorKevin Barnes <krbarnes>2008-08-13 18:11:14 +0000
committerKevin Barnes <krbarnes>2008-08-13 18:11:14 +0000
commit07fcda578bfa14f35629122cb63a063d676ea89c (patch)
tree511d2e18f7a97ab025382d91af7109f0b12dce89 /bundles
parent0faa853187eaa844c49ce6fcb58296b1352f592e (diff)
downloadeclipse.platform.swt-07fcda578bfa14f35629122cb63a063d676ea89c.tar.gz
eclipse.platform.swt-07fcda578bfa14f35629122cb63a063d676ea89c.tar.xz
eclipse.platform.swt-07fcda578bfa14f35629122cb63a063d676ea89c.zip
243942 - NPE in Tree.getSelection
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
index fed30f8fc9..786c12ac31 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
@@ -1737,7 +1737,7 @@ void setItemCount (TreeItem parentItem, int count) {
if (count < itemCount) {
for (int index = count; index < itemCount; index ++) {
TreeItem item = children [index];
- if (item != null && !item.isDisposed()) item.dispose();
+ if (item != null && !item.isDisposed()) item.release (false);
}
}
if (count > itemCount) {
@@ -1761,7 +1761,9 @@ void setItemCount (TreeItem parentItem, int count) {
parentItem.items = newItems;
parentItem.itemCount = count;
}
- ((NSOutlineView) view).reloadItem_reloadChildren_ (parentItem != null ? parentItem.handle : null, true);
+ NSOutlineView widget = (NSOutlineView) view;
+ widget.reloadItem_reloadChildren_ (parentItem != null ? parentItem.handle : null, true);
+ widget.noteNumberOfRowsChanged();
}
/*public*/ void setItemHeight (int itemHeight) {