From 26cfd3ecbd149a6e7ddedb5f9962c63b766d258c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 15 May 2014 11:58:47 -0700 Subject: [PATCH] Add missing check for if the context has been initialized in the crash handler --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 0696d1576..b48113017 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);