NPE in android.app.Activity.onStop
<p>I am seeing this crash in Play Store.</p>

<p>When I check source code of 
framework/base/core/java/android/app/Activity.java</p>

<p>for ICS (crash happend on 4.0.4)</p>

<p>only explanation is that application is null!</p>

<p>Check code:</p>

<pre><code>protected void onStop() {
    if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(false);
    getApplication().dispatchActivityStopped(this);
    mCalled = true;
}
</code></pre>

<p>Exception:</p>

<pre><code>java.lang.RuntimeException: Unable to stop activity {my.app/my.app.StartActivity}:  java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:2588)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:2654)
at android.app.ActivityThread.access$2100(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:961)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3647)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.app.Activity.onStop(Activity.java:1301)
at my.app.StartActivity.onStop(StartActivity.java:675)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1169)
at android.app.Activity.performStop(Activity.java:3968)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:2583)
... 11 more
</code></pre>
