Bug 366012: [EditorMgmt] AFE in SaveablesList.decrementRefCount when
closing editor
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveablesList.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveablesList.java
index 78f1c03..b2398bd 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveablesList.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveablesList.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2010 IBM Corporation and others.
+ * Copyright (c) 2006, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -147,7 +147,8 @@
private boolean decrementRefCount(Map referenceMap, Object key) {
boolean result = false;
Integer refCount = (Integer) referenceMap.get(key);
- Assert.isTrue(refCount != null);
+ if (refCount == null)
+ Assert.isTrue(false, key + ": " + ((Saveable) key).getName()); //$NON-NLS-1$
if (refCount.intValue() == 1) {
referenceMap.remove(key);
result = true;