Fix for issue #143: Do not call FileList::setCurrentFolder() with start_folder = NULL.

It's strange why start_folder could be NULL in this case, but there is
a chance that FileSystemModule::getFileItemFromPath() fails and returns
NULL.
This commit is contained in:
David Capello 2012-07-17 22:12:41 -03:00
parent 14f24b1181
commit b090629897

View File

@ -280,7 +280,8 @@ base::string FileSelector::show(const base::string& title,
center_window();
m_fileList->setExtensions(showExtensions.c_str());
m_fileList->setCurrentFolder(start_folder);
if (start_folder)
m_fileList->setCurrentFolder(start_folder);
// current location
navigation_position.reset();