Sfoglia il codice sorgente

Merge pull request #6945 from ghalliday/issue12991

HPCC-12991 Fix core on error case in debug mode

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 anni fa
parent
commit
e7392c5c3f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ecl/hql/hqlexpr.cpp

+ 1 - 1
ecl/hql/hqlexpr.cpp

@@ -5813,7 +5813,7 @@ void CHqlField::onCreateField()
     case type_groupedtable:
         typeExpr = queryRecord();
 #ifdef _DEBUG
-        if (!hasAttribute(_linkCounted_Atom))
+        if (typeExpr && !hasAttribute(_linkCounted_Atom))
         {
             OwnedHqlExpr unadornedRecord = getUnadornedRecordOrField(typeExpr->queryRecord());
             assertex(!recordRequiresLinkCount(unadornedRecord));