diff options
author | Andrei Popescu <andreip@google.com> | 2009-08-20 18:17:16 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-08-20 18:22:36 +0100 |
commit | 6be3d89252e71f798249b20c929858c147684ac4 (patch) | |
tree | ee08f91594485d1b6e1f80021f1249ca7d2e012c /WebCore | |
parent | 1a37cbf6a819206b786d03c2e5e3cbdfb0f14f01 (diff) | |
download | external_webkit-6be3d89252e71f798249b20c929858c147684ac4.zip external_webkit-6be3d89252e71f798249b20c929858c147684ac4.tar.gz external_webkit-6be3d89252e71f798249b20c929858c147684ac4.tar.bz2 |
Fix Layout test crash in V8 bindings to AppCache
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/bindings/v8/custom/V8DOMApplicationCacheCustom.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ ACCESSOR_GETTER(DOMApplicationCacheEventHandler) 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); } |