diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index e446c75786..c966e4ea7e 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -1278,7 +1278,7 @@ void CCH_flush(thread_db* tdbb, USHORT flush_flag, TraNumber tra_number) PIO_flush(tdbb, shadow->sdw_file); BackupManager* bm = dbb->dbb_backup_manager; - if (!bm->isShutDown()) + if (bm && !bm->isShutDown()) { BackupManager::StateReadGuard stateGuard(tdbb); const int backup_state = bm->getState();