diff --git a/src/common/string.cpp b/src/common/string.cpp index 7759ed8766..532e77b6d5 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -2021,6 +2021,7 @@ static void wxLoadCharacterSets(void) static wxCharacterSet *wxFindCharacterSet(const wxChar *charset) { + if (!charset) return (wxCharacterSet *)NULL; wxLoadCharacterSets(); for (size_t n=0; n