@Override
public boolean equals(Object o)
{
+ // TODO should override Object.hashCode() to ensure that equal objects have
+ // equal hashcodes
if (o == null || !(o instanceof Mapping))
{
return false;
{
return false;
}
- if (map.equals(other.map))
+ if ((map == null && other.map == null) || map.equals(other.map))
{
return true;
}