#178 - Fixed potential NullPointerException in ResourceSupport.

ResourceSupport now has a null guard in equals(…) to prevent NullPointerExceptions from happening.
This commit is contained in:
Oliver Gierke
2014-05-20 10:52:56 +02:00
parent 6473c10113
commit 48749e7a87
2 changed files with 11 additions and 1 deletions

View File

@@ -142,7 +142,7 @@ public class ResourceSupport implements Identifiable<Link> {
return true;
}
if (!obj.getClass().equals(this.getClass())) {
if (obj == null || !obj.getClass().equals(this.getClass())) {
return false;
}