SVN commit 1158320 by trueg: Check the value of the connection, thus do not crash when we failed to connect. M +7 -1 virtuosobackend.cpp --- trunk/kdesupport/soprano/backends/virtuoso/virtuosobackend.cpp #1158319:1158320 @@ -96,10 +96,16 @@ ODBC::ConnectionPool* connectionPool = new ODBC::ConnectionPool( connectString ); // FIXME: should configuration only be allowed on spawned servers? - ODBC::Connection* conn = connectionPool->connection(); + if ( ODBC::Connection* conn = connectionPool->connection() ) { DatabaseConfigurator configurator( conn ); configurator.configureServer( settings ); delete conn; + } + else { + qDebug() << Q_FUNC_INFO << "Failed to connect to" << connectString; + delete connectionPool; + return 0; + } VirtuosoModel* model = new VirtuosoModel( connectionPool, this ); // mem mangement the ugly way