changeset 22458:cb2c60249e28

Truffle/REPL debugger: fix condtion clearning on "pending breakpoints"
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Thu, 12 Nov 2015 12:09:24 -0800
parents 400bbc57017e
children 298c63b1d555
files truffle/com.oracle.truffle.tools.debug.shell/src/com/oracle/truffle/tools/debug/shell/server/REPLServer.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.tools.debug.shell/src/com/oracle/truffle/tools/debug/shell/server/REPLServer.java	Wed Nov 11 16:25:54 2015 -0800
+++ b/truffle/com.oracle.truffle.tools.debug.shell/src/com/oracle/truffle/tools/debug/shell/server/REPLServer.java	Thu Nov 12 12:09:24 2015 -0800
@@ -470,7 +470,8 @@
 
         @Override
         public void setCondition(String expr) throws IOException {
-            this.conditionSource = Source.fromText(expr, "breakpoint condition from text: " + expr);
+
+            this.conditionSource = expr == null ? null : Source.fromText(expr, "breakpoint condition from text: " + expr);
         }
 
         @Override