=== modified file 'storage/ndb/tools/restore/Restore.cpp' --- storage/ndb/tools/restore/Restore.cpp 2009-09-08 12:10:53 +0000 +++ storage/ndb/tools/restore/Restore.cpp 2009-11-24 16:10:03 +0000 @@ -565,7 +565,16 @@ RestoreMetaData::fixBlobs() break; } } - assert(blobTable != NULL); + if (blobTable == NULL) + { + /* Corrupt backup, has main table, but no blob table */ + err << "Table " << table->m_dictTable->getName() + << " has blob column " << j << " (" + << c->m_name.c_str() + << ") with missing parts table in backup." + << endl; + return false; + } assert(blobTable->m_dictTable != NULL); NdbTableImpl& bt = NdbTableImpl::getImpl(*blobTable->m_dictTable); const char* colName = c->m_blobVersion == 1 ? "DATA" : "NDB$DATA";