Debugger: return void value for empty code fragment

This commit is contained in:
Natalia Ukhorskaya
2015-02-09 17:29:41 +03:00
parent 187806d061
commit 3864f182da
@@ -116,6 +116,10 @@ class KotlinEvaluator(val codeFragment: JetCodeFragment,
val sourcePosition: SourcePosition
) : Evaluator {
override fun evaluate(context: EvaluationContextImpl): Any? {
if (codeFragment.getText().isEmpty()) {
return context.getDebugProcess().getVirtualMachineProxy().mirrorOf()
}
var isCompiledDataFromCache = true
try {
val compiledData = KotlinEvaluateExpressionCache.getOrCreateCompiledData(codeFragment, sourcePosition, context) {