fix crash creating top level imap folder r=rhp, 20349

This commit is contained in:
bienvenu%netscape.com 1999-12-03 06:31:08 +00:00
parent 92b8ee0132
commit 4d6f4037a2

View File

@ -1544,7 +1544,7 @@ nsImapService::CreateFolder(nsIEventQueue* eventQueue, nsIMsgFolder* parent,
GetFolderName(parent, getter_Copies(folderName));
urlSpec.Append("/create>");
urlSpec.Append(hierarchySeparator);
if (nsCRT::strlen(folderName) > 0)
if ((const char *) folderName && nsCRT::strlen(folderName) > 0)
{
urlSpec.Append((const char *) folderName);
urlSpec.Append(hierarchySeparator);