diff --git a/lib/base/value.hpp b/lib/base/value.hpp index 96be16d9f..3d12a262e 100644 --- a/lib/base/value.hpp +++ b/lib/base/value.hpp @@ -144,7 +144,7 @@ public: template operator intrusive_ptr(void) const { - if (IsEmpty()) + if (IsEmpty() && !IsString()) return intrusive_ptr(); if (!IsObject())