addressbook
addressbook copied to clipboard
Possible NPE in ContactService
The following comparator may throw NPE in cases when Contact's ID hasn't been set:
Collections.sort(arrayList, new Comparator<Contact>() {
@Override
public int compare(Contact o1, Contact o2) {
return (int) (o2.getId() - o1.getId());
}
});