title: Why do my objects become null on returning to my previous Activity
body: <p>I have two activities Suppose A and B;</p>
  
  <p><strong>activity A</strong> has several objects of View [<code>TextView</code>, <code>TabView</code>, <code>ListView</code> etc]:</p>
  
  <p>I fire an Intent using <code>startActivityForResult</code> and go to <strong>activity B</strong></p>
  
  <p>then i do my computation as required in <strong>activity B</strong> and return back to <strong>activity A</strong> by <code>setRuslt</code> and then <code>finish();</code></p>
  
  <p>on returning to my <strong>onActivityResult</strong> i work according to the result sent from <strong>activity B</strong>;</p>
  
  <p><em>Everything above works perfectly fine.[During testing]</em></p>
  
  <p>But when i have deployed my application I am facing crashes [unexpected Nullpointer exception]</p>
  
  <p>-> In some cases ListView inside my onResume method is null;</p>
  
  <p>-> In some cases my tabView is null;</p>
  
  <p>-> In some cases my database object instance is null;</p>
  
  <p>am I missing any important step of the activity lifecycle. It works fine while in testing.</p>
  
  <p><strong>Please Note: I have map Views on both the activities</strong></p>
  
  <p>Please help.
  Thank you in advance.</p>
  
  <p>HERE's AN STACK TRACE</p>
  
  <pre><code>java.lang.NullPointerException
  at in.abmulani.thisway.MainActivity.onKeyDown(MainActivity.java:511)
  at android.view.KeyEvent.dispatch(KeyEvent.java:2719)
  at android.app.Activity.dispatchKeyEvent(Activity.java:2419)
  at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:190)
  at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:4150)
  at android.view.ViewRootImpl.handleImeFinishedEvent(ViewRootImpl.java:4112)
  at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3292)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  </code></pre>