@@ -548,12 +548,6 @@ bool Serializable::SaveXML(XMLElement& dest) const
bool Serializable::SaveJSON(JSONValue& dest) const
{
- if (dest.IsNull())
- {
- URHO3D_LOGERROR("Could not save " + GetTypeName() + ", null destination JSON value");
- return false;
- }
-
const Vector<AttributeInfo>* attributes = GetAttributes();
if (!attributes)
return true;
@@ -218,12 +218,6 @@ bool UnknownComponent::SaveXML(XMLElement& dest) const
bool UnknownComponent::SaveJSON(JSONValue& dest) const
- URHO3D_LOGERROR("Could not save " + GetTypeName() + ", null destination element");
if (!useXML_)
URHO3D_LOGWARNING("UnknownComponent loaded in binary mode, attributes will be empty for JSON save");