diff options
-rw-r--r-- | chrome/browser/ui/webui/constrained_html_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/constrained_html_ui.cc b/chrome/browser/ui/webui/constrained_html_ui.cc index caf05bc..220fdfe 100644 --- a/chrome/browser/ui/webui/constrained_html_ui.cc +++ b/chrome/browser/ui/webui/constrained_html_ui.cc @@ -49,7 +49,7 @@ void ConstrainedHtmlUI::OnDialogCloseMessage(const ListValue* args) { return; std::string json_retval; - if (!args->GetString(0, &json_retval)) + if (!args->empty() && !args->GetString(0, &json_retval)) NOTREACHED() << "Could not read JSON argument"; delegate->GetHtmlDialogUIDelegate()->OnDialogClosed(json_retval); delegate->OnDialogCloseFromWebUI(); |