aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTLazy.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-02 21:24:22 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-02 21:24:22 +0000
commit40f6e3a25c0d35b9416346b72f1b6ba07778d173 (patch)
tree7775c2129a406f97f444d6e5a9ac8cb0f5825b0e /include/core/SkTLazy.h
parent5aacfe9ffcf1849727dca6761b4a221bd4315f26 (diff)
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@14552 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTLazy.h')
-rw-r--r--include/core/SkTLazy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkTLazy.h b/include/core/SkTLazy.h
index a291e22a13..518beecc85 100644
--- a/include/core/SkTLazy.h
+++ b/include/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 {