diff --git a/include/base/cef_weak_ptr.h b/include/base/cef_weak_ptr.h index 1ba34b9db..8f9511fcb 100644 --- a/include/base/cef_weak_ptr.h +++ b/include/base/cef_weak_ptr.h @@ -250,11 +250,11 @@ class WeakPtr : public cef_internal::WeakPtrBase { T* get() const { return ref_.is_valid() ? ptr_ : NULL; } T& operator*() const { - DCHECK(get() != NULL); + CHECK(ref_.is_valid()); return *get(); } T* operator->() const { - DCHECK(get() != NULL); + CHECK(ref_.is_valid()); return get(); }