altosdroid: check for mAltosVoice being null.
authorMike Beattie <mike@ethernal.org>
Sun, 21 Apr 2013 02:41:50 +0000 (14:41 +1200)
committerMike Beattie <mike@ethernal.org>
Sun, 21 Apr 2013 02:41:50 +0000 (14:41 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java

index ebbe9330867ae515aa8b91022f6ebd945da284bb..e10982f7cc8873832c99fa21e2937c260deab64f 100644 (file)
@@ -414,7 +414,7 @@ public class AltosDroid extends FragmentActivity {
                super.onDestroy();
                if(D) Log.e(TAG, "--- ON DESTROY ---");
 
-               mAltosVoice.stop();
+               if (mAltosVoice != null) mAltosVoice.stop();
        }
 
        public void onActivityResult(int requestCode, int resultCode, Intent data) {