mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
r=brade, sr=kin, a=dbaron Midas - crash - handle unexpected empty parameters
This commit is contained in:
parent
5d219b9e49
commit
8d61d5c090
@ -647,10 +647,14 @@ nsMultiStateCommand::DoCommandParams(const char *aCommandName,
|
||||
nsresult rv = NS_OK;
|
||||
if (editor)
|
||||
{
|
||||
nsXPIDLCString s;
|
||||
aParams->GetCStringValue(STATE_ATTRIBUTE, getter_Copies(s));
|
||||
nsAutoString tString;
|
||||
tString.AssignWithConversion(s);
|
||||
nsAutoString tString
|
||||
|
||||
if (aParams) {
|
||||
nsXPIDLCString s;
|
||||
aParams->GetCStringValue(STATE_ATTRIBUTE, getter_Copies(s));
|
||||
tString.AssignWithConversion(s);
|
||||
}
|
||||
|
||||
rv = SetState(editor, tString);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user