Commit efe03524 authored by Karel Slaný's avatar Karel Slaný

Minor change in SQLiteDb::createEmptyMissingTables().

parent 1db1a100
......@@ -521,7 +521,10 @@ fail:
bool SQLiteDb::createEmptyMissingTables(const QList<class SQLiteTbl *> &tables)
{
foreach (const SQLiteTbl *tblPtr, tables) {
Q_ASSERT(0 != tblPtr);
if (Q_UNLIKELY(Q_NULLPTR == tblPtr)) {
Q_ASSERT(0);
continue;
}
if (!tblPtr->createEmpty(m_db)) {
goto fail; /* TODO -- Proper recovery? */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment