Index: trunk/FACT++/src/Database.h
===================================================================
--- trunk/FACT++/src/Database.h	(revision 19235)
+++ trunk/FACT++/src/Database.h	(revision 19236)
@@ -23,4 +23,7 @@
     DatabaseName(const std::string &database) : compression(0)
     {
+        if (database.empty())
+            return;
+
         static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))(\\?compress=[01])?");
 
@@ -74,5 +77,6 @@
 
         // Connect to the database
-        connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port);
+        if (!server.empty())
+            connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port);
     }
 };
