title: SetText in EditText Android error
body: <p>I want to setText in EditView but it will error. I dont know why. </p>
  
  <p>This is on OnCreate function. </p>
  
  <pre><code>name = (EditText) findViewById(R.id.input_name);
  
  String editname = String.valueOf(getName());
  MessageTo.message(this,editname);
  
  name.setText(editname);
  </code></pre>
  
  <p>The string i will set in EditText name.</p>
  
  <pre><code>public String getName(){
      int id = 1;
      String data=dbhandler.getName(id);
  
      return data;
  }
  </code></pre>
  
  <p>If i remove this code from the OnCreate function </p>
  
  <pre><code>name.setText(editname);
  </code></pre>
  
  <p>It will have no error. The MessageTo.message code is where it pops a dialog of the String editname. It will show the String editname.  </p>
  
  <p>So i put back the code and change it into this code, </p>
  
  <pre><code>name.setText("testing");
  </code></pre>
  
  <p>But it still won't work.</p>
  
  <p>I dont know why though. All other sources have EditText.setText("String") as how to setText in EditText but it won't work in my case. </p>
  
  <p>LOGCAT ERROR:</p>
  
  <pre><code>09-20 21:00:36.677    1436-1436/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.organizer/com.organizer.ManageProfileActivity}: java.lang.NullPointerException
  </code></pre>