Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9012)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9013)
@@ -34,4 +34,7 @@
      - do not write the "Run[0-]*" line for anything else than
        the "Runs" (needs more fixes)
+
+   * mjobs/MSequenceSQL.cc:
+     - added a sanity check
 
 
Index: /trunk/MagicSoft/Mars/mjobs/MSequenceSQL.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MSequenceSQL.cc	(revision 9012)
+++ /trunk/MagicSoft/Mars/mjobs/MSequenceSQL.cc	(revision 9013)
@@ -309,4 +309,7 @@
     // Request information from database
     TSQLResult *res = serv.Query(query);
+    if (!res)
+        return kFALSE;
+
     const Bool_t rc = GetFromDatabase(serv, *res);
     delete res;
