forked from qt-creator/qt-creator
Check for 0x0 access when comparing identifiers.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user