aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-10-19 12:26:51 (EDT)
committerBogdan Gheorghe2012-11-21 11:32:29 (EST)
commitc8f294ad8338b2696b2fa15e73dff2e698083a61 (patch)
treed053d121771595b85047b9ff3b66ba4eeb20a803
parentf3a1281646d2918e24a3f3244e246f2d05d6175c (diff)
downloadeclipse.platform.swt-c8f294ad8338b2696b2fa15e73dff2e698083a61.zip
eclipse.platform.swt-c8f294ad8338b2696b2fa15e73dff2e698083a61.tar.gz
eclipse.platform.swt-c8f294ad8338b2696b2fa15e73dff2e698083a61.tar.bz2
Bug 391254: NPE in CTabFolder.onMouse; onDispose should not setv4235d
folderListeners to null
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 7bce246..eedc76c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -1599,8 +1599,8 @@ void onDispose(Event event) {
chevronItem = null;
chevronTb = null;
- folderListeners = null;
- tabListeners = null;
+ if (folderListeners.length != 0) folderListeners = new CTabFolder2Listener[0];
+ if (tabListeners.length != 0) tabListeners = new CTabFolderListener[0];
}
void onDragDetect(Event event) {
boolean consume = false;