In my project I show a dialog when every item of ListView is clicked.
But I get an error after the third position.My code:

```
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_rapor);
    raporList = new ArrayList<>();
    liste = (ListView) findViewById(R.id.list);        
    new RaporServis().execute();

    //ListView Select
    liste.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, final View view, int position,
                                long id) {
            final CharSequence[] items = {"Görev Ataması Yapıldı", "İşlem Tamamlandı"};
            View curr = parent.getChildAt((int) id);
             //I'm getting an error here.
            TextView c = (TextView) curr.findViewById(R.id.gorevNo);
            String gorevNo = c.getText().toString();
            AlertDialog.Builder builder = new AlertDialog.Builder(RaporActivity.this);
            builder.setTitle("İş Durumu");
            builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int item) {
                    DialogSecimi = items[item].toString();
                }
            });

            builder.setPositiveButton("Kaydet",
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int id) {
                            TextView tv = (TextView) view.findViewById(R.id.isDurum);
                            tv.setText(DialogSecimi);
                            tv.setTextColor(Color.parseColor("#27ae60"));
                            if (DialogSecimi == "Görev Ataması Yapıldı") {
                                isDurumuKodu = "1";
                            } else if (DialogSecimi == "İşlem Tamamlandı") {
                                isDurumuKodu = "3";
                            }

                                Toast.makeText(RaporActivity.this, "Saved", Toast.LENGTH_SHORT).show();
                            } catch (Exception ex) {
                                Toast.makeText(RaporActivity.this, "Error ! Don't Save", Toast.LENGTH_SHORT).show();
                            }

                        }
                    });
            builder.setNegativeButton("İptal Et",
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int id) {
                            Toast.makeText(RaporActivity.this, "İptal Edildi", Toast.LENGTH_SHORT).show();
                        }
                    });
            AlertDialog alert = builder.create();
            alert.show();
        }
    });

}

```

Error:

> 
> Attempt to invoke virtual method 'android.view.View
>  android.view.View.findViewById(int)' on a null object reference
> 
> 
>