Open rgoldberg opened 9 years ago
Have you had a chance to look into this issue?
No, not yet. I'm sorry but I'm too overloaded with client work at the moment. But I appreciate your findings in this area. I will take a look at it, but I cannot promise any dates.
In
CrmLookupEntity.equals(Object)
, ifo == null
, you get aNullPointerException
.If
! (o instanceof CrmLookupEntity)
, you get aGroovyCastException
Existing code:
The following commented line should be replaced:
by something like:
or:
A
NullPointerException
will also be thrown byCrmContactAddress.equals(Object)
, so you should check all of theequals(Object)
methods in all of the crm classes.If you want, the following article is useful for implementing robust
equals(Object)
methods:http://www.artima.com/lejava/articles/equality.html