From 0a253b071a6f8fef2c605f9e63b0248f8da58fbf Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 25 Aug 2011 18:05:18 +0400 Subject: [PATCH] TraverseUI test fixed --- .../engine/evaluation/CodeFragmentFactoryContextWrapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/CodeFragmentFactoryContextWrapper.java b/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/CodeFragmentFactoryContextWrapper.java index 23f69f217895..ac522ffde739 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/CodeFragmentFactoryContextWrapper.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/evaluation/CodeFragmentFactoryContextWrapper.java @@ -70,6 +70,7 @@ public class CodeFragmentFactoryContextWrapper implements CodeFragmentFactory{ private PsiElement wrapContext(Project project, final PsiElement originalContext) { + if (project.isDefault()) return originalContext; PsiElement context = originalContext; final DebugProcessImpl process = DebuggerManagerEx.getInstanceEx(project).getContext().getDebugProcess(); if (process != null) {