Skip to content

Poco::Var operator== throws exception #769

@hadzim

Description

@hadzim

Curent implementation of Poco::Var operator == throws exception
if "this" object is non empty and "other" object is empty

bool Var::operator == (const Var& other) const
{
if (isEmpty() && !other.isEmpty()) return false;
if (isEmpty() && other.isEmpty()) return true;
return convertstd::string() == other.convertstd::string();
}

There is missing line
if (!isEmpty() && other.isEmpty()) return false;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions