浏览代码

Merge pull request #1178 from ghalliday/logbug

Fix SEH if no configuration properties are provided

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 年之前
父节点
当前提交
2e66384771
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      system/jlib/jlog.cpp

+ 1 - 1
system/jlib/jlog.cpp

@@ -2649,7 +2649,7 @@ public:
     CComponentLogFileCreator(IPropertyTree * _properties, const char *_component) : component(_component)
     {
         setDefaults();
-        if (!getConfigurationDirectory(_properties->queryPropTree("Directories"), "log", _component, _properties->queryProp("@name"), logDir))
+        if (_properties && !getConfigurationDirectory(_properties->queryPropTree("Directories"), "log", _component, _properties->queryProp("@name"), logDir))
             _properties->getProp("@logDir", logDir);
     }