diff --git a/src/burp/burp.cpp b/src/burp/burp.cpp index 32e2872959..62c4bf4d1d 100644 --- a/src/burp/burp.cpp +++ b/src/burp/burp.cpp @@ -1107,7 +1107,7 @@ int gbak(Firebird::UtilSvc* uSvc) { // All calls to exit_local(), normal and error exits, wind up here tdgbl->burp_throw = false; - if (tdgbl->action->act_action == ACT_backup_fini) + if (tdgbl->action && tdgbl->action->act_action == ACT_backup_fini) { tdgbl->exit_code = 0; } @@ -1187,7 +1187,7 @@ void BURP_abort() **************************************/ BurpGlobals* tdgbl = BurpGlobals::getSpecific(); - BURP_print(true, tdgbl->action->act_action == ACT_backup_fini ? 351 : 83); + BURP_print(true, tdgbl->action && tdgbl->action->act_action == ACT_backup_fini ? 351 : 83); // msg 351 Error closing database, but backup file is OK // msg 83 Exiting before completion due to errors