Permalink
Browse files

[CodeAction] Fixed possible null reference exception.

  • Loading branch information...
1 parent 74296db commit fe88a0e25eecc33d6397a6c63d97b922b0dd5d88 @mkrueger mkrueger committed Sep 19, 2012
@@ -112,7 +112,7 @@ public bool IsSubPath(AccessPath other)
public override bool Equals(object obj)
{
- if (obj.GetType() != typeof(AccessPath))
+ if (obj == null || obj.GetType() != typeof(AccessPath))
return false;
var other = (AccessPath)obj;

0 comments on commit fe88a0e

Please sign in to comment.