Fix #8044 - fixing varous crashes, correct tree drop location and empty nodes after...
[roobuilder] / src / Builder4 / WindowRooView.bjs
index 98fa40c..497caf2 100644 (file)
             "         ",
             "    ",
             "    } catch (Error e) {",
+            "    \tGLib.debug(\"error loading %s : %s\", f.get_uri(),e.message);",
             "        inhtml = {};",
             "    }    ",
             "    this.renderedData = js;",
             "    var fc =    FakeServerCache.factory_with_data(js_src);",
             "    this.runjs = fc.fname;",
             "    var html  = (string) inhtml;",
+            "    html = html == null ? \"\" : html; // fix null?",
+            "    ",
             "\thtml = html.replace(\"</head>\", runhtml + this.runhtml + ",
             "        \"<script type=\\\"text/javascript\\\" src=\\\"xhttp://localhost\" + fc.fname + \"\\\"></script>\" +   ",
             "          //  \"<script type=\\\"text/javascript\\\">\\n\" +",