diff options
author | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 21:01:41 +0000 |
---|---|---|
committer | achuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 21:01:41 +0000 |
commit | d73d5f66e9c1d054e58b3966e9eaab7ab0020999 (patch) | |
tree | 2f6e9dd9817c9165dd48490a13d65c17c8eb9ddb | |
parent | bd6c46eaa5b9e3019c07d403c26cb908f699b8f5 (diff) | |
download | chromium_src-d73d5f66e9c1d054e58b3966e9eaab7ab0020999.zip chromium_src-d73d5f66e9c1d054e58b3966e9eaab7ab0020999.tar.gz chromium_src-d73d5f66e9c1d054e58b3966e9eaab7ab0020999.tar.bz2 |
Add null check in GetChildrenForPath, needed for DownloadTest.
BUG=72750
TEST=More DownloadTests should pass on ChromeOS.
Review URL: http://codereview.chromium.org/6525033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75181 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/dom_ui/filebrowse_ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/filebrowse_ui.cc b/chrome/browser/dom_ui/filebrowse_ui.cc index 2b7ba40..f9a6fee 100644 --- a/chrome/browser/dom_ui/filebrowse_ui.cc +++ b/chrome/browser/dom_ui/filebrowse_ui.cc @@ -838,6 +838,9 @@ void FilebrowseHandler::UploadToPicasaweb(const ListValue* args) { void FilebrowseHandler::GetChildrenForPath(const FilePath& path, bool is_refresh) { + if (path.empty()) + return; + filelist_value_.reset(new ListValue()); currentpath_ = path; |