OSDN Git Service

fix: Crash if there is no res_layout.html and the debug option set.
[nt2chview/stable.git] / NT2chCtrl45 / NTResViewPanel.xaml.cs
index 5b62784..be8b66c 100755 (executable)
@@ -120,7 +120,7 @@ namespace NT2chCtrl
             //    return;\r
             html.HtmlParser parser;\r
             if (!ResViewCtrlState.getInstance().init(htmlSource, mCommand, out parser)\r
-                && debug && parser.hasError())\r
+                && debug && (parser != null && parser.hasError()))\r
             {\r
                 \r
                 NTScriptDebugger debugger = new NTScriptDebugger();\r