Check for null number when handling missed calls

pull/14/head
Sam Bosley 13 years ago
parent 235dc415de
commit 46e3ffb571

@ -592,7 +592,6 @@ public class EditPeopleControlSet extends PopupControlSet {
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
long id) {
AssignedToUser user = (AssignedToUser) assignedList.getAdapter().getItem(position);
System.err.println("Position: " + position + ", label: " + user.label + ", user: " + user.user);
for (AssignedChangedListener l : listeners) {
if(l.showTaskRabbitForUser(user.label, user.user)) {

@ -105,6 +105,8 @@ public class PhoneStateChangedReceiver extends BroadcastReceiver {
}
private String digitsOnly(String number) {
if (number == null)
return "";
StringBuilder builder = new StringBuilder();
for (int i = 0; i < number.length(); i++) {
char c = number.charAt(i);

Loading…
Cancel
Save