title: Frequent Orientation Change is giving Null Pointer Exception for Textview
body: <p>My Problem is, TextView is giving <strong>java.lang.NullPointerException</strong> if I <strong>do Orientation changes</strong> frequently. I pasted my code below. Am I missing something?</p>
  
  <pre><code>@Override
  public void onSaveInstanceState(Bundle outState) {
  
      if (title.getText().toString() != null) {      //Getting Null Exception here
          Log.i("onSaveInstanceState", "  "+title.getText().toString());
          outState.putString("title", title.getText().toString());
      }
  }
  </code></pre>
  
  <p>--</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
      view=inflater.inflate(R.layout.add, null);
      title =(TextView) view.findViewById(R.id.title);
  
      if (savedInstanceState.getString("title") != null) {
          Log.i("on create", " "+savedInstanceState.getString("title"));
          title.setText(savedInstanceState.getString("title"));
      }
  }
  </code></pre>