Skip to content

Commit c4436cc

Browse files
author
Philip Guo
committed
minor
1 parent dcdd43b commit c4436cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

edu-python.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ function highlightCodeLine(curLine, visitedLinesSet, hasError, isTerminated) {
158158

159159
// relies on curTrace and curInstr globals
160160
function updateOutput() {
161+
if (!curTrace) {
162+
return;
163+
}
164+
161165
useJsPlumbRendering = !($("#classicModeCheckbox").prop("checked"));
162166

163167
var curEntry = curTrace[curInstr];

0 commit comments

Comments
 (0)