Skip to content

Commit 05608cb

Browse files
committed
fixes #393
1 parent b3ad6b7 commit 05608cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cSploit/src/org/csploit/android/net/Target.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ public int getDrawableResourceId() {
230230
}
231231

232232
public boolean equals(Object o) {
233-
return !(o == null || o.getClass() != this.getClass()) && ((Exploit) o).getId().equals(getId());
233+
if(o == null || o.getClass() != this.getClass())
234+
return false;
235+
Exploit other = (Exploit) o;
236+
return id == null ? other.id == null : id.equals(other.id);
234237
}
235238

236239
public void addReference(Reference ref) {

0 commit comments

Comments
 (0)