diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-02 21:24:22 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-02 21:24:22 +0000 |
commit | 403f31f75fcf1c161b02f57350cc5ae411bb52f4 (patch) | |
tree | e4e0583a5b4c0204a082588ffbe1f1a20c349c1a | |
parent | 2b64e065346a07793c6f484737dcc07f833f349f (diff) | |
download | include-403f31f75fcf1c161b02f57350cc5ae411bb52f4.tar.gz |
add release-mode checks for null, at least for a while
BUG=skia:
R=bungeman@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/263883006
git-svn-id: http://skia.googlecode.com/svn/trunk/include@14552 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | core/SkTLazy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/SkTLazy.h b/core/SkTLazy.h index a291e22..518beec 100644 --- a/core/SkTLazy.h +++ b/core/SkTLazy.h @@ -66,6 +66,11 @@ public: * contents. */ T* set(const T& src) { + // Diagnoistic. May remove later. See crbug.com/364224 + if (NULL == &src) { + sk_throw(); + } + if (this->isValid()) { *fPtr = src; } else { |