diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-05-24 13:25:56 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-05-24 13:25:56 -0300 |
commit | 71355aaab7eca64bec694918c6b911a412ad17f0 (patch) | |
tree | aac0ea577a292092ac2e7e92ca9a76608faeae7c /platform/android/java_glue.cpp | |
parent | 1cad087969efefa401a11051343cd0689f660770 (diff) |
-Fixed bug in "extends"
Diffstat (limited to 'platform/android/java_glue.cpp')
-rw-r--r-- | platform/android/java_glue.cpp | 6 |
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; + + } }; |