Disallow casting "" to an Object

fixes #12390
This commit is contained in:
Gunnar Beutner 2016-08-10 11:14:33 +02:00
parent 827b230467
commit 39bde8078c
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public:
template<typename T>
operator intrusive_ptr<T>(void) const
{
if (IsEmpty())
if (IsEmpty() && !IsString())
return intrusive_ptr<T>();
if (!IsObject())