Index: Source/bindings/core/v8/V8Binding.cpp |
diff --git a/Source/bindings/core/v8/V8Binding.cpp b/Source/bindings/core/v8/V8Binding.cpp |
index 946677479d7a7d0db34fdb0ba61249c62409f7eb..b85856fe6f96d890e11cbd5db4965e35c817dd75 100644 |
--- a/Source/bindings/core/v8/V8Binding.cpp |
+++ b/Source/bindings/core/v8/V8Binding.cpp |
@@ -149,6 +149,8 @@ v8::ArrayBuffer::Allocator* v8ArrayBufferAllocator() |
PassRefPtrWillBeRawPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value> callback, v8::Handle<v8::Object> creationContext, ScriptState* scriptState) |
{ |
+ if (callback->IsNull()) |
+ return nullptr; |
RefPtrWillBeRawPtr<NodeFilter> filter = NodeFilter::create(); |
v8::Handle<v8::Object> filterWrapper = toV8(filter, creationContext, scriptState->isolate()).As<v8::Object>(); |