title: How to send an Array list to another activity
body: <p>I want to send a string array list from my MainActivity to Creating activity via using intent. but it gives me some error 
  I am dealing with it for some time-_-.</p>
  
  <p>This arraylist is for adding some words. I tried putextra(); and putStringArrayListExtra();</p>
  
  <p><strong>MainActivity</strong></p>
  
  <pre><code>Intent intent = new Intent(getApplicationContext(),creating.class);
  intent.putStringArrayListExtra("w",Words);
  intent.putStringArrayListExtra("m", Meanings);
  startActivityForResult(intent,REQUEST_CODE);
  </code></pre>
  
  <p><strong>CreatingActivity</strong></p>
  
  <pre><code>private ArrayList&lt;String&gt; Words1;
  private ArrayList&lt;String&gt; Meanings1;
  @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_creating);
  
          Words1 = new ArrayList&lt;String&gt;();
          Meanings1 = new ArrayList&lt;String&gt;();
          Words1 = intent1.getStringArrayListExtra("w");
          Meanings1 = intent1.getStringArrayListExtra("m");
  </code></pre>
  
  <p>when I click the button to come to this activity, this error appears:</p>
  
  <blockquote>
    <p>java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.ArrayList android.content.Intent.getStringArrayListExtra(java.lang.String)' on a null object reference</p>
  </blockquote>