Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 291128 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java (-2 / +7 lines)
Lines 1176-1182 Link Here
1176
	}
1176
	}
1177
1177
1178
	static AccessibleObject getAccessibleObject (int /*long*/ atkObject) {
1178
	static AccessibleObject getAccessibleObject (int /*long*/ atkObject) {
1179
		return (AccessibleObject)AccessibleObjects.get (new LONG (atkObject));
1179
		AccessibleObject object = (AccessibleObject)AccessibleObjects.get (new LONG (atkObject));
1180
		if (object == null) return null;
1181
		if (object.accessible == null) return null;
1182
		Control control = object.accessible.control;
1183
		if (control == null || control.isDisposed()) return null;
1184
		return object;
1180
	}
1185
	}
1181
	
1186
	
1182
	AccessibleObject getChildByHandle (int /*long*/ handle) {
1187
	AccessibleObject getChildByHandle (int /*long*/ handle) {
Lines 1252-1258 Link Here
1252
		GObjectClass objectClassStruct = new GObjectClass ();
1257
		GObjectClass objectClassStruct = new GObjectClass ();
1253
		ATK.memmove (objectClassStruct, gObjectClass);
1258
		ATK.memmove (objectClassStruct, gObjectClass);
1254
		ATK.call (objectClassStruct.finalize, atkObject);
1259
		ATK.call (objectClassStruct.finalize, atkObject);
1255
		AccessibleObject object = getAccessibleObject (atkObject);
1260
		AccessibleObject object = (AccessibleObject)AccessibleObjects.get (new LONG (atkObject));
1256
		if (object != null) {
1261
		if (object != null) {
1257
			AccessibleObjects.remove (new LONG (atkObject));
1262
			AccessibleObjects.remove (new LONG (atkObject));
1258
			object.release ();
1263
			object.release ();

Return to bug 291128