commit | 0761c6a148859f70a436c4dbfdb6dfeed88f48cb | [log] [tgz] |
---|---|---|
author | Chiao Cheng <chiaocheng@google.com> | Tue Dec 11 11:10:17 2012 -0800 |
committer | Chiao Cheng <chiaocheng@google.com> | Tue Dec 11 11:10:17 2012 -0800 |
tree | 905fe6e09b402e9c23cdf09e027584f6255ca471 | |
parent | 0bb33dbc0ea77c50a334b3f07a4f9d8e5e1ad2d4 [diff] |
Fixing potential null assignment to primitive value. Bug: 7713659 Change-Id: Ief42b4fae52fe057e02446ec76c33c3c5dc45656
diff --git a/src/com/android/contacts/group/GroupBrowseListAdapter.java b/src/com/android/contacts/group/GroupBrowseListAdapter.java index 32296c2..f1c3aba 100644 --- a/src/com/android/contacts/group/GroupBrowseListAdapter.java +++ b/src/com/android/contacts/group/GroupBrowseListAdapter.java
@@ -60,7 +60,7 @@ // first group if (mSelectedGroupUri == null && cursor != null && cursor.getCount() > 0) { GroupListItem firstItem = getItem(0); - long groupId = (firstItem == null) ? null : firstItem.getGroupId(); + long groupId = (firstItem == null) ? 0 : firstItem.getGroupId(); mSelectedGroupUri = getGroupUriFromId(groupId); }