knilch0r / freeshisen

Free (OSS) ShisenSho game for android.
https://github.com/knilch0r/freeshisen
GNU General Public License v2.0
13 stars 2 forks source link

Missing null check in onDestroy #11

Closed knilch0r closed 6 years ago

knilch0r commented 6 years ago

Environment

Actual behavior

Caused by: java.lang.NullPointerException: at de.cwde.freeshisen.ShisenShoActivity.onDestroy (ShisenShoActivity.java) at android.app.Activity.performDestroy (Activity.java:6200) at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1140)

This happens when view is null, ie we're getting destroyed before we even started. Add a corresponding check in onDestroy, look for other places. Gets reported via Playstore every now and then, I wonder who's able to reproduce that without a broken phone or an emulator...