Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: experimental/webtry/res/js/webtry.js

Issue 644253003: fix display of fiddles that DON'T have compile errors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/webtry/webtry.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/res/js/webtry.js
diff --git a/experimental/webtry/res/js/webtry.js b/experimental/webtry/res/js/webtry.js
index 8bce06bfd78261681723f9ea1a90f0cd6c53e0c0..18190e92cb59e6de8bfeabb95b08c0cc0856b25b 100644
--- a/experimental/webtry/res/js/webtry.js
+++ b/experimental/webtry/res/js/webtry.js
@@ -269,7 +269,7 @@
// image to display.
endWait();
body = JSON.parse(e.target.response);
- if (body.compileErrors.length) {
+ if (null != body.compileErrors && body.compileErrors.length) {
html = "";
for (i = 0 ; i < body.compileErrors.length ; i++) {
compileError = body.compileErrors[i];
« no previous file with comments | « no previous file | experimental/webtry/webtry.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698