r=brade, sr=kin, a=dbaron
Midas - crash - handle unexpected empty parameters
This commit is contained in:
mkaply%us.ibm.com 2003-02-17 21:02:43 +00:00
parent 5d219b9e49
commit 8d61d5c090

View File

@ -647,10 +647,14 @@ nsMultiStateCommand::DoCommandParams(const char *aCommandName,
nsresult rv = NS_OK;
if (editor)
{
nsAutoString tString
if (aParams) {
nsXPIDLCString s;
aParams->GetCStringValue(STATE_ATTRIBUTE, getter_Copies(s));
nsAutoString tString;
tString.AssignWithConversion(s);
}
rv = SetState(editor, tString);
}