summaryrefslogtreecommitdiff
path: root/platform/android/java_glue.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-05-24 13:25:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-05-24 13:25:56 -0300
commit71355aaab7eca64bec694918c6b911a412ad17f0 (patch)
treeaac0ea577a292092ac2e7e92ca9a76608faeae7c /platform/android/java_glue.cpp
parent1cad087969efefa401a11051343cd0689f660770 (diff)
-Fixed bug in "extends"
Diffstat (limited to 'platform/android/java_glue.cpp')
-rw-r--r--platform/android/java_glue.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/android/java_glue.cpp b/platform/android/java_glue.cpp
index 5bf2fc5a73..4362b8f2c4 100644
--- a/platform/android/java_glue.cpp
+++ b/platform/android/java_glue.cpp
@@ -354,6 +354,7 @@ public:
virtual Variant call(const StringName& p_method,const Variant** p_args,int p_argcount,Variant::CallError &r_error) {
//print_line("attempt to call "+String(p_method));
+ ERR_FAIL_COND_V(!instance,Variant());
r_error.error=Variant::CallError::CALL_OK;
@@ -519,7 +520,10 @@ public:
}
- JNISingleton() {}
+ JNISingleton() {
+ instance=NULL;
+
+ }
};