commit | 5671c7e7718c3285dc0391807401083986fcfd51 | [log] [tgz] |
---|---|---|
author | Maurice Chu <mochu@google.com> | Tue Aug 14 14:26:24 2012 -0700 |
committer | Maurice Chu <mochu@google.com> | Tue Aug 14 14:26:24 2012 -0700 |
tree | cc37d83a7330e7bfd6513e906532734dda45fbe0 | |
parent | 19591a699650a55c3fb836b790b7ad86d6945dd1 [diff] |
Fix binding editors when state is null The bindEditors() can only bind views when there is data, so this checks for a null state and returns immediately if null. Bug: 6601692 Change-Id: I1abfd75ce3bffb5c96a7b5cb609c6d1686581649
diff --git a/src/com/android/contacts/editor/ContactEditorFragment.java b/src/com/android/contacts/editor/ContactEditorFragment.java index 780279e..5ee6ff9 100644 --- a/src/com/android/contacts/editor/ContactEditorFragment.java +++ b/src/com/android/contacts/editor/ContactEditorFragment.java
@@ -675,6 +675,12 @@ } private void bindEditors() { + // bindEditors() can only bind views if there is data in mState, so immediately return + // if mState is null + if (mState == null) { + return; + } + // Sort the editors Collections.sort(mState, mComparator);