Add missing check for if the context has been initialized in the crash handler

This commit is contained in:
Thomas Goyne 2014-05-15 11:58:47 -07:00
parent 796f26c008
commit 26cfd3ecbd

View file

@ -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);