Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/RefreshUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/RefreshUtil.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/RefreshUtil.java
index 3e5081b6a..2c516a2a7 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/RefreshUtil.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/RefreshUtil.java
@@ -178,7 +178,10 @@ public class RefreshUtil {
} catch (CoreException e) {
// unable to resolve a resource
}
- if (resource != null) {
+ if (resource == null) {
+ // empty selection
+ return new IResource[]{};
+ } else {
if (memento.equals(MEMENTO_SELECTED_RESOURCE)) {
return new IResource[] { resource };
} else if (memento.equals(MEMENTO_SELECTED_CONTAINER)) {

Back to the top