title: NullPointer Exception while passing Bundle from Activity to Fragment
body: <p>I'm new to android, trying to send a bundle from a Activity to Fragment using</p>
  
  <pre><code>Bundle args = new Bundle();
  args.putString("name", "XXXXXXX");
  
  FragmentTab1 fTab1 = new FragmentTab1();
  fTab1.setArguments(args);
  </code></pre>
  
  <p>and in FragmentTab1 onCreate method as follows:</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
      // Get the view from fragmenttab1.xml
      View view = inflater.inflate(R.layout.fragmenttab1, container, false);
      Bundle bundle = this.getArguments();
      if (bundle != null) {
        name = bundle.getString("name");
      }
      TextView nameView = (TextView) view.findViewById(R.id.dinesh);
      nameView.setText(name);
      return view;
    }
  </code></pre>
  
  <p>getting <code>null pointer exception</code> at  <code>Bundle bundle = this.getArguments();</code></p>
  
  <p>please help me to trace this exception</p>