if (editField != null)
if (editField != null && editFile != null)
    private void completeEditing()    {      if (editField != null)        {          String text = editField.getText();          if (text != null && !text.equals(""))            editFile.renameTo(new File(text));          list.remove(editField);          list.revalidate();          list.repaint();        }    }