title: Assigned variable mysteriously becomes null
body: <p>I have class:</p>
  
  <pre><code>public class Nomenklatura implements Serializable {
      ArrayList&lt;String&gt; data = new ArrayList&lt;String&gt;();
      ArrayList&lt;String&gt; data1 = new ArrayList&lt;String&gt;();
      ArrayList&lt;String&gt; data2 = new ArrayList&lt;String&gt;(6);
  }
  </code></pre>
  
  <p>And Activity:   </p>
  
  <pre><code>public class Smena extends Activity {
      public Nomenklatura Asortiment;
      ArrayList&lt;String&gt; data = new ArrayList&lt;String&gt;();
      ArrayList&lt;String&gt; data1 = new ArrayList&lt;String&gt;();
      ArrayList&lt;String&gt; data2 = new ArrayList&lt;String&gt;(6);
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.smena); 
          Intent i= getIntent();
  
          Asortiment = (Nomenklatura) i.getExtras().getSerializable("Nomenklatura");
          ArrayList&lt;String&gt; data = Asortiment.data;
          ArrayList&lt;String&gt; data1 = Asortiment.data1;
          ArrayList&lt;String&gt; data2= Asortiment.data2;
      }
  }
  </code></pre>
  
  <p>In debugger, before <code>ArrayList&lt;String&gt; data =Asortiment.data;</code>I see data in Asortiment.data, but after this operation, <code>ArrayList&lt;String&gt; data</code> is empty. I can't understand why.</p>