Changeset 101

Show
Ignore:
Timestamp:
01/25/08 09:28:03 (1 year ago)
Author:
zork
Message:

fixed crash when plugin cannot initialize DbConnection? from Database

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/debea_1_2/dba/dba/sqlarchive.cpp

    r98 r101  
    158158  }; 
    159159  DbConnection* ret = mDb->getConnection(mConnectStr.c_str()); 
     160  if (ret == NULL) { 
     161    throw DatabaseException("Cannot initialize connection to database"); 
     162  }; 
    160163  ret->setErrorHandler(this,&handleError); 
    161164  if (!pRelease) {