diff --git a/src/metadata/database.cpp b/src/metadata/database.cpp index 609c6aee..97edd241 100644 --- a/src/metadata/database.cpp +++ b/src/metadata/database.cpp @@ -427,6 +427,8 @@ wxArrayString Database::getCharacterSet() wxArrayString Database::getCollations(const wxString& charset) { CharacterSetPtr characterSet = characterSetsM->findByName(charset); + if (!characterSet) + return wxArrayString(); characterSet->ensureChildrenLoaded(); return characterSet->getCollations();