Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-05-05 09:02:38 -0400
committerDarin Wright2010-05-05 09:02:38 -0400
commit0f0fb3e5b6075bd367aaf88101de0e39c2b7b188 (patch)
tree78c2879def111ef6ad059dc1f856d2a0f4616c95
parent6cd29c1589ba7c6b7347305758feb887584f1731 (diff)
downloadeclipse.platform.debug-0f0fb3e5b6075bd367aaf88101de0e39c2b7b188.tar.gz
eclipse.platform.debug-0f0fb3e5b6075bd367aaf88101de0e39c2b7b188.tar.xz
eclipse.platform.debug-0f0fb3e5b6075bd367aaf88101de0e39c2b7b188.zip
Bug 311202 - NPE in PresentationContext outside Debug perspective
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/PresentationContext.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/PresentationContext.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/PresentationContext.java
index a4171884e..f8050d9b0 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/PresentationContext.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/PresentationContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
+ * Copyright (c) 2005, 2010 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
@@ -77,7 +77,7 @@ public class PresentationContext implements IPresentationContext {
* @param part presentation context part, may be <code>null</code>
*/
public PresentationContext(String id, IWorkbenchPart part) {
- this (id, part.getSite().getWorkbenchWindow(), part);
+ this (id, part == null ? null : part.getSite().getWorkbenchWindow(), part);
}
/**

Back to the top