minor fix

This commit is contained in:
Artem Budarin 2018-08-07 23:13:18 +05:00
parent 128c330f48
commit 9ea4ad4b93

View File

@ -94,6 +94,9 @@ public class GL2JNIActivity extends Activity
} }
public static GL2JNIActivity getInstance() { 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; return instance;
} }