Fix converting empty V8 dictionary.
This commit is contained in:
parent
11e4111f25
commit
0349fdfd67
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ bool Converter<base::DictionaryValue>::FromV8(v8::Isolate* isolate,
|
||||||
scoped_ptr<atom::V8ValueConverter> converter(new atom::V8ValueConverter);
|
scoped_ptr<atom::V8ValueConverter> converter(new atom::V8ValueConverter);
|
||||||
scoped_ptr<base::Value> value(converter->FromV8Value(
|
scoped_ptr<base::Value> value(converter->FromV8Value(
|
||||||
val, v8::Context::GetCurrent()));
|
val, v8::Context::GetCurrent()));
|
||||||
if (value->IsType(base::Value::TYPE_DICTIONARY)) {
|
if (value && value->IsType(base::Value::TYPE_DICTIONARY)) {
|
||||||
out->Swap(static_cast<DictionaryValue*>(value.get()));
|
out->Swap(static_cast<DictionaryValue*>(value.get()));
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue