Fixing NPE in contact editor

Bug: 3276044

Change-Id: Id66492cd0e8570bbe9333e5085d65b47f42525eb
diff --git a/src/com/android/contacts/editor/LabeledEditorView.java b/src/com/android/contacts/editor/LabeledEditorView.java
index 6d44d15..8b2d277 100644
--- a/src/com/android/contacts/editor/LabeledEditorView.java
+++ b/src/com/android/contacts/editor/LabeledEditorView.java
@@ -498,7 +498,7 @@
             super(context, 0);
             mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
 
-            if (mType.customColumn != null) {
+            if (mType != null && mType.customColumn != null) {
 
                 // Use custom label string when present
                 final String customText = mEntry.getAsString(mType.customColumn);