for(i=0; i<iSize; i++)
{
- if(dbrefs[i].equals(entry))
+ if(dbrefs[i].equalRef(entry))
{
+ if (entry.getMap()!=null)
+ {
+ if (dbrefs[i].getMap()==null)
+ {
+ // overwrite with 'superior' entry that contains a mapping.
+ dbrefs[i] = entry;
+ }
+ }
return;
}
}