diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/instrument/InstrumentationProbeNode.java @ 13665:8d99131c8940

Truffle/Instrumentation: fix NPE in InstrumentationProbeNode
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Thu, 16 Jan 2014 20:52:12 -0800
parents b88852aea6f3
children f2345d7c52ef 3f27e57439ed
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/instrument/InstrumentationProbeNode.java	Thu Jan 16 17:23:50 2014 -0800
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/instrument/InstrumentationProbeNode.java	Thu Jan 16 20:52:12 2014 -0800
@@ -373,7 +373,9 @@
                 if (stepping) {
                     getContext().getDebugManager().haltedAt(astNode, frame.materialize());
                 }
-                next.internalEnter(astNode, frame);
+                if (next != null) {
+                    next.internalEnter(astNode, frame);
+                }
             }
         }