Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2002-03-27 10:04:23 -0500
committerDarin Swanson2002-03-27 10:04:23 -0500
commitfae36edd9b23f0ee80819f3361e67c82cd5d9e9a (patch)
tree7b6fc8bddef88768426729b7e85c11a186c8b058
parent965825e50ada18593d2b343a4bbe83650ea7e752 (diff)
downloadeclipse.platform.debug-fae36edd9b23f0ee80819f3361e67c82cd5d9e9a.tar.gz
eclipse.platform.debug-fae36edd9b23f0ee80819f3361e67c82cd5d9e9a.tar.xz
eclipse.platform.debug-fae36edd9b23f0ee80819f3361e67c82cd5d9e9a.zip
Bug 12339 - NPE when i switch to debug perspective
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/VariablesView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/VariablesView.java
index 955ebd548..815a15a71 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/VariablesView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/VariablesView.java
@@ -443,7 +443,7 @@ public class VariablesView extends AbstractDebugEventHandlerView implements ISel
*/
protected void setInitialContent() {
ISelection selection= getSite().getPage().getSelection(IDebugUIConstants.ID_DEBUG_VIEW);
- if (selection != null && !selection.isEmpty() && selection instanceof IStructuredSelection) {
+ if (selection instanceof IStructuredSelection && !selection.isEmpty()) {
setViewerInput((IStructuredSelection) selection);
}
}

Back to the top