mirror of https://github.com/odrling/Aegisub
Add missing check for if the context has been initialized in the crash handler
This commit is contained in:
parent
796f26c008
commit
26cfd3ecbd
|
@ -378,7 +378,7 @@ int AegisubApp::OnExit() {
|
|||
|
||||
static void UnhandledExeception(bool stackWalk, agi::Context *c) {
|
||||
#if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0)
|
||||
if (c->ass && c->subsController) {
|
||||
if (c && c->ass && c->subsController) {
|
||||
auto path = config::path->Decode("?user/recovered");
|
||||
agi::fs::CreateDirectory(path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue