Fix Layout test crash in V8 bindings to AppCache
diff --git a/WebCore/bindings/v8/custom/V8DOMApplicationCacheCustom.cpp b/WebCore/bindings/v8/custom/V8DOMApplicationCacheCustom.cpp
index dd05b45..7a3bfe6 100644
--- a/WebCore/bindings/v8/custom/V8DOMApplicationCacheCustom.cpp
+++ b/WebCore/bindings/v8/custom/V8DOMApplicationCacheCustom.cpp
@@ -74,6 +74,8 @@
INC_STATS("DOMApplicationCache.onevent_getter");
DOMApplicationCache* appcache = V8DOMWrapper::convertToNativeObject<DOMApplicationCache>(V8ClassIndex::DOMAPPLICATIONCACHE, info.Holder());
EventListener* listener = appcache->getAttributeEventListener(toEventID(name));
+ if (!listener)
+ return v8::Null();
return eventListenerToV8Object(listener);
}