Преглед изворни кода

HPCC-22079 Avoid crash in getDaliLayoutInfo for blank ECL definition

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday пре 6 година
родитељ
комит
cff364ed44
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/thorhelper/thorcommon.cpp

+ 1 - 1
common/thorhelper/thorcommon.cpp

@@ -2025,7 +2025,7 @@ extern THORHELPER_API IOutputMetaData *getDaliLayoutInfo(IPropertyTree const &pr
             props.getProp("ECL", layoutECL);
             MultiErrorReceiver errs;
             Owned<IHqlExpression> expr = parseQuery(layoutECL.str(), &errs);
-            if (errs.errCount() == 0)
+            if (expr && (errs.errCount() == 0))
             {
                 if (props.hasProp("_record_layout"))  // Some old indexes need the payload count patched in from here
                 {