Merge "Check the parent for null in deleteEditor"
diff --git a/src/com/android/contacts/editor/LabeledEditorView.java b/src/com/android/contacts/editor/LabeledEditorView.java
index 2a1ec5e..2a97f4c 100644
--- a/src/com/android/contacts/editor/LabeledEditorView.java
+++ b/src/com/android/contacts/editor/LabeledEditorView.java
@@ -177,7 +177,10 @@
mEntry.markDeleted();
// Remove the view
- ((ViewGroup) getParent()).removeView(LabeledEditorView.this);
+ final ViewGroup parent = (ViewGroup)getParent();
+ if (parent != null) {
+ parent.removeView(LabeledEditorView.this);
+ }
}
public boolean isReadOnly() {