projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a62c2f9
)
Check render frame host before getting context
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Fri, 24 Feb 2017 15:49:26 +0000
(07:49 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Fri, 24 Feb 2017 15:49:26 +0000
(07:49 -0800)
atom/browser/web_dialog_helper.cc
patch
|
blob
|
history
diff --git
a/atom/browser/web_dialog_helper.cc
b/atom/browser/web_dialog_helper.cc
index
d9e747a
..
3ca5ba8
100644
(file)
--- a/
atom/browser/web_dialog_helper.cc
+++ b/
atom/browser/web_dialog_helper.cc
@@
-65,7
+65,7
@@
class FileSelectHelper : public base::RefCounted<FileSelectHelper>,
file_info.push_back(info);
}
- if (!paths.empty()) {
+ if (
render_frame_host_ &&
!paths.empty()) {
auto browser_context = static_cast<atom::AtomBrowserContext*>(
render_frame_host_->GetProcess()->GetBrowserContext());
browser_context->prefs()->SetFilePath(prefs::kSelectFileLastDirectory,