Browse Source

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 years ago
parent
commit
e7392c5c3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecl/hql/hqlexpr.cpp

+ 1 - 1
ecl/hql/hqlexpr.cpp

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