diff options
Diffstat (limited to 'plugins/Import/src')
-rw-r--r-- | plugins/Import/src/import.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 127a21ff5e..7e61b493fb 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -600,7 +600,9 @@ struct MImportGroup static int ImportGroup(const char* szSettingName, void *param)
{
OBJLIST<MImportGroup> *pArray = (OBJLIST<MImportGroup>*)param;
- pArray->insert(new MImportGroup(atoi(szSettingName), myGetWs(NULL, "CListGroups", szSettingName)));
+ wchar_t *wszGroupName = myGetWs(NULL, "CListGroups", szSettingName);
+ if (wszGroupName != nullptr)
+ pArray->insert(new MImportGroup(atoi(szSettingName), wszGroupName));
return 0;
}
|