Check for 0x0 access when comparing identifiers.

This commit is contained in:
Roberto Raggi
2009-07-10 16:03:26 +02:00
parent 3e54a65a69
commit e2b3d34dc5

View File

@@ -122,7 +122,9 @@ Identifier::~Identifier()
bool Identifier::isEqualTo(const Identifier *other) const
{
if (this == other)
if (! other)
return false;
else if (this == other)
return true;
else if (hashCode() != other->hashCode())
return false;