فهرست منبع

HPCC-12991 Fix core on error case in debug mode

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 10 سال پیش
والد
کامیت
015145d001
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ecl/hql/hqlexpr.cpp

+ 1 - 1
ecl/hql/hqlexpr.cpp

@@ -5812,7 +5812,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));