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) {