Index: /trunk/FACT++/src/makedata.cc
===================================================================
--- /trunk/FACT++/src/makedata.cc	(revision 15365)
+++ /trunk/FACT++/src/makedata.cc	(revision 15366)
@@ -152,4 +152,6 @@
 
     vector<mysqlpp::Row>::const_iterator row=res.begin();
+    if (row==res.end())
+        return 1;
 
     Nova::EquPosn pos;
