diff --git a/android/app/src/main/java/mw/gri/android/MainActivity.java b/android/app/src/main/java/mw/gri/android/MainActivity.java index f78e91c..7d6d384 100644 --- a/android/app/src/main/java/mw/gri/android/MainActivity.java +++ b/android/app/src/main/java/mw/gri/android/MainActivity.java @@ -310,7 +310,9 @@ public class MainActivity extends GameActivity { View content = findViewById(android.R.id.content); if (content != null) { content.post(() -> { - mCameraProvider.unbindAll(); + if (mCameraProvider != null) { + mCameraProvider.unbindAll(); + } }); } }