Android Bundle NullPointer
<p>In my Android application I want to transfer data between activities; mentioned FirstActivity.class and SecondActivity.class. But in my FirstActivity it is showing a <code>NullPointerException</code>. Can you tell me what's wrong in my class?</p>

<p>FirstActivity.class:</p>

<pre><code>Bundle bundle = getIntent().getExtras();
         fingerPrintID = bundle.getString("ThumbInfo");  
</code></pre>

<p>SecondActivity.class:</p>

<pre><code>Bundle bundle = new Bundle();
bundle.putString("ThumbInfo", FingerImageData.toString());  
Intent enroll=new Intent(First.this,Enroll.class);
enroll.putExtras(bundle);
startActivity(enroll);  
</code></pre>
