Commit e2b3d34d authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for 0x0 access when comparing identifiers.

parent 3e54a65a
...@@ -122,7 +122,9 @@ Identifier::~Identifier() ...@@ -122,7 +122,9 @@ Identifier::~Identifier()
bool Identifier::isEqualTo(const Identifier *other) const bool Identifier::isEqualTo(const Identifier *other) const
{ {
if (this == other) if (! other)
return false;
else if (this == other)
return true; return true;
else if (hashCode() != other->hashCode()) else if (hashCode() != other->hashCode())
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment