From e2b3d34dc516e33b76983976f6b714554b99cac9 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 10 Jul 2009 16:03:26 +0200 Subject: [PATCH] Check for 0x0 access when comparing identifiers. --- src/shared/cplusplus/Literals.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/cplusplus/Literals.cpp b/src/shared/cplusplus/Literals.cpp index 83457137982..0f21e379cf8 100644 --- a/src/shared/cplusplus/Literals.cpp +++ b/src/shared/cplusplus/Literals.cpp @@ -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;