Commit ea489885 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix null pointer crash with adjustAndMark

R=ager@chromium.org, sigbjornf@opera.com
BUG=384246

Review URL: https://codereview.chromium.org/338533002

git-svn-id: svn://svn.chromium.org/blink/trunk@176166 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 11fa29bf
...@@ -621,7 +621,8 @@ class DefaultTraceTrait<T, true> { ...@@ -621,7 +621,8 @@ class DefaultTraceTrait<T, true> {
public: public:
static void mark(Visitor* visitor, const T* self) static void mark(Visitor* visitor, const T* self)
{ {
self->adjustAndMark(visitor); if (self)
self->adjustAndMark(visitor);
} }
#ifndef NDEBUG #ifndef NDEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment