Buggy code:
private static final File PHOTO_DIR = new File ( ( ( Environment . getExternalStorageDirectory ( ) ) + "//DCIM//Camera" ) ) ; private File mCurrentPhotoFile ; String mQuerySelection ; private long mContactIdForJoin ; private static final int STATUS_LOADING = 0 ; private static final int STATUS_EDITING = 1 ; private static final int STATUS_SAVING = 2 ; private int mStatus ; EntitySet mState ; LinearLayout mContent ; private ArrayList < Dialog > mManagedDialogs = Lists . newArrayList ( ) ; private ViewIdGenerator mViewIdGenerator ; @ Override protected void onCreate ( Bundle icicle ) { } private static class QueryEntitiesTask extends WeakAsyncTask < Intent , Void , EntitySet , EditContactActivity > { private String mSelection ; public QueryEntitiesTask ( EditContactActivity target ) { } @ SuppressWarnings ( "deprecation" ) @ Override protected EntitySet doInBackground ( EditContactActivity target , Intent ... params ) { } @ Override protected void onPostExecute ( EditContactActivity target , EntitySet entitySet ) { } } @ Override protected void onSaveInstanceState ( Bundle outState ) { } @ Override protected void onRestoreInstanceState ( Bundle savedInstanceState ) { } @ Override protected void onDestroy ( ) { } @ Override protected Dialog onCreateDialog ( int id , Bundle bundle ) { } private void startManagingDialog ( Dialog dialog ) { } void showAndManageDialog ( Dialog dialog ) { } static void dismissDialog ( Dialog dialog ) { } protected boolean hasValidState ( ) { } protected void bindEditors ( ) { } private class PhotoListener implements DialogInterface . OnClickListener , EditorListener { private long mRawContactId ; private boolean mReadOnly ; private PhotoEditorView mEditor ; public PhotoListener ( long rawContactId , boolean readOnly , PhotoEditorView editor ) { } public void onDeleted ( Editor editor ) { } public void onRequest ( int request ) { } public Dialog createPhotoDialog ( ) { } public void onClick ( DialogInterface dialog , int which ) { } } public void onClick ( View view ) { } @ Override public void onBackPressed ( ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onPrepareOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public static class PersistTask extends WeakAsyncTask < EntitySet , Void , Integer , EditContactActivity > { private static final int PERSIST_TRIES = 3 ; private static final int RESULT_UNCHANGED = 0 ; private static final int RESULT_SUCCESS = 1 ; private static final int RESULT_FAILURE = 2 ; private WeakReference < ProgressDialog > mProgress ; private int mSaveMode ; private Uri mContactLookupUri = null ; public PersistTask ( EditContactActivity target , int saveMode ) { } @ Override protected void onPreExecute ( EditContactActivity target ) { } @ Override protected Integer doInBackground ( EditContactActivity target , EntitySet ... params ) { } private long getRawContactId ( EntitySet state , final ArrayList < ContentProviderOperation > diff , final ContentProviderResult [ ] results ) { } @ Override protected void onPostExecute ( EditContactActivity target , Integer result ) { } } boolean doSaveAction ( int saveMode ) { } private class DeleteClickListener implements DialogInterface . OnClickListener { public void onClick ( DialogInterface dialog , int which ) { } } private void onSaveCompleted ( boolean success , int saveMode , Uri contactLookupUri ) { } public void showJoinAggregateActivity ( Uri contactLookupUri ) { } private interface JoinContactQuery { String [ ] PROJECTION = new String [ ] { RawContacts . _ID , RawContacts . CONTACT_ID , TRawContacts . NAME_VERIFIED } ; String SELECTION = ( ( ( RawContacts . CONTACT_ID ) + "=?<seq2seq4repair_space>OR<seq2seq4repair_space>" ) + ( RawContacts . CONTACT_ID ) ) + "=?" ; int _ID = 0 ; int CONTACT_ID = 1 ; int NAME_VERIFIED = 2 ; } private void joinAggregate ( final long contactId ) { } private void buildJoinContactDiff ( ArrayList < ContentProviderOperation > operations , long rawContactId1 , long rawContactId2 ) { } private boolean doRevertAction ( ) { } private boolean doAddAction ( ) { } private boolean doDeleteAction ( ) { } boolean doPickPhotoAction ( long rawContactId ) { } private Dialog createPickPhotoDialog ( ) { } private String getPhotoFileName ( ) { } protected void doTakePhoto ( ) { } public static Intent getTakePickIntent ( File f ) { } protected void doCropPhoto ( File f ) { } public static Intent getCropImageIntent ( Uri photoUri ) { } protected void doPickPhotoFromGallery ( ) { } public static Intent getPhotoPickIntent ( ) { <START_BUG> Intent intent = new Intent ( TIntent . ACTION_GET_CONTENT , null ) ; <END_BUG> intent . setType ( "image//*" ) ; intent . putExtra ( "crop" , "true" ) ; intent . putExtra ( "aspectX" , 1 ) ; intent . putExtra ( "aspectY" , 1 ) ; intent . putExtra ( "outputX" , EditContactActivity . ICON_SIZE ) ; intent . putExtra ( "outputY" , EditContactActivity . ICON_SIZE ) ; intent . putExtra ( "return-data" , true ) ; return intent ; } public void onDeleted ( Editor editor ) { } private boolean doSplitContactAction ( ) { } private Dialog createSplitDialog ( ) { } private boolean doJoinContactAction ( ) { } private static class AddContactTask extends WeakAsyncTask < Void , Void , ArrayList < Account > , EditContactActivity > { public AddContactTask ( EditContactActivity target ) { } @ Override protected ArrayList < Account > doInBackground ( final EditContactActivity target , Void ... params ) { } @ Override protected void onPostExecute ( final EditContactActivity target , ArrayList < Account > accounts ) { } } public void selectAccountAndCreateContact ( ArrayList < Account > accounts ) { } private void createContact ( Account account ) { } public int compare ( EntityDelta one , EntityDelta two ) { } @ Override public void startSearch ( String initialQuery , boolean selectInitialQuery , Bundle appSearchData , boolean globalSearch ) { } }

Fix:
Intent intent = new Intent ( Intent . ACTION_GET_CONTENT , null ) ;