Browse Source

Merge pull request #1268 from richardkchapman/roxie-unittest

Fix segfault in roxie unit test code
Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 13 years ago
parent
commit
e78c83604b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roxie/ccd/ccddali.cpp

+ 1 - 1
roxie/ccd/ccddali.cpp

@@ -339,7 +339,7 @@ public:
             // NOTE - if daliHelper is not NULL but isAlive returned false, then we have an overlapping connect with a final disconnect
             // In this case the beforeDispose will have taken care NOT to disconnect, isConnected will remain set, and the connect() will be a no-op.
             daliHelper = new CRoxieDaliHelper();
-            if (!topology->getPropBool("@lockDali", false))
+            if (topology && !topology->getPropBool("@lockDali", false))
                 daliHelper->connect();
             return daliHelper;
         }