diff options
-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 { |