From 9ea4ad4b93d3ed5025c5000335f5a4e1514c94ef Mon Sep 17 00:00:00 2001 From: Artem Budarin Date: Tue, 7 Aug 2018 23:13:18 +0500 Subject: [PATCH] minor fix --- .../main/java/fishrungames/doublehitballs/GL2JNIActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proj.android-studio/app/src/main/java/fishrungames/doublehitballs/GL2JNIActivity.java b/proj.android-studio/app/src/main/java/fishrungames/doublehitballs/GL2JNIActivity.java index 04ac63e..b0d7479 100755 --- a/proj.android-studio/app/src/main/java/fishrungames/doublehitballs/GL2JNIActivity.java +++ b/proj.android-studio/app/src/main/java/fishrungames/doublehitballs/GL2JNIActivity.java @@ -94,6 +94,9 @@ public class GL2JNIActivity extends Activity } public static GL2JNIActivity getInstance() { + if (instance == null) { + throw new RuntimeException("error GL2JNIActivity getInstance() - you are trying to get activity instance when it is not created or already destroyed"); + } return instance; }