Index: configdb.cpp
===================================================================
--- configdb.cpp	(revision 6357)
+++ configdb.cpp	(working copy)
@@ -142,7 +142,7 @@
 
 	~SQLiteStmt() { sqlite3_finalize(pStmt); }
 
-	SQLiteStmt& Reset() { param=1; sqlite3_clear_bindings(pStmt); sqlite3_reset(pStmt); return *this; }
+	SQLiteStmt& Reset() { param=1; if (pStmt) sqlite3_clear_bindings(pStmt); sqlite3_reset(pStmt); return *this; }
 
 	bool Step() { return sqlite3_step(pStmt) == SQLITE_ROW; }
 
