X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3103e8a97e834e9793f0eb149aa82a99fd64ef9a..7ec698211d5d82a009ac80fb354059e9af497508:/src/common/stdpbase.cpp diff --git a/src/common/stdpbase.cpp b/src/common/stdpbase.cpp index 5c104c2fe9..6f9bba7c97 100644 --- a/src/common/stdpbase.cpp +++ b/src/common/stdpbase.cpp @@ -47,7 +47,10 @@ static wxStandardPaths gs_stdPaths; /* static */ wxStandardPathsBase& wxStandardPathsBase::Get() { - return wxTheApp->GetTraits()->GetStandardPaths(); + wxAppTraits * const traits = wxTheApp ? wxTheApp->GetTraits() : NULL; + wxCHECK_MSG( traits, gs_stdPaths, _T("create wxApp before calling this") ); + + return traits->GetStandardPaths(); } wxStandardPathsBase& wxAppTraitsBase::GetStandardPaths()